Replies: 1 comment 3 replies
-
I’m not opposed to it, but help me understand the use case, is it about downloading a release in a connected environment and then building it in an offline one? Can’t a binary be moved to the offline env instead so there isn’t a need for the toolchain either? Or can’t you run “go mod vendor” in the environment where you downloaded the release?
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For example, dnscrypt-proxy does this by simply maintaining vendor directory. You can also setup CI to vendor dependencies into release tarball without needing to keep vendor directory within repository. Here is the command that can be used for this:
go mod vendor
With vendored dependencies, i can build age from source without internet connection by using this command:
go build -mod=vendor
Beta Was this translation helpful? Give feedback.
All reactions