Yeah, it's about 1GBs of data, I just want specific packages for that project
Do you copy packages through ssh?
Easy script: 1. Copy the project to the computer with internet 2. Update packages with go mod 3. Rsync to copy updated files to server over ssh
For this to work, I'd need to isolate the project so by running go get to only get packages related to that. Isolating the project itself is a challenge. But I'll try that if I don't find any other ways, thanks
What do you mean by isolating the project? Don't you do it when updating/ downloading packages on the machine with internet access.
So currently I have ~1GBs of data in my $GOPATH/pkg/mod directory. I don't need all of that, and I can't upload all of that with my limited upload speed. By isolating the project I meant to only have packages related to that project inside $GOPATH/pkg/mod. Not all packages
You can try go mod vendor
https://stackoverflow.com/a/52271668
Thanks. It looks like the packages are resolved now, but it is looking for project files in another location. Still working on it
It's an IDE issue I guess Are you able to build?
The problem was that inside go install directory, there were some old codes with errors. Strangely this would preventing the build referring to those errors. I removed the old projects from there and it's now build successfully!
Обсуждают сегодня