-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Go modules to vendor directory #17
base: master
Are you sure you want to change the base?
Conversation
d684d51
to
c06ed03
Compare
But you have to checkout |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-0
c06ed03
to
51a8c95
Compare
It actually appears that you do need the |
Signed-off-by: Christopher Crone <[email protected]>
Signed-off-by: Christopher Crone <[email protected]>
51a8c95
to
2601027
Compare
Signed-off-by: Christopher Crone <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SGTM
@tonistiigi ptal (you dealt with go mod a bit more than I did)
|
||
set -eu -o pipefail | ||
|
||
go mod tidy 2>/dev/null && go mod vendor 2>/dev/null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thing to consider (no blocker) is if we want this to always be run, or only if either the Go version is updated, or if go.mod
or vendor/
has been modified in a pull request
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tonis didn't have access to this GitHub org. I've added him and will re-ping when he's accepted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Chatting to @thaJeztah and @justincormack, for things that we expect to ship as a binary it makes more sense to include the modules as vendored code.
This also speeds up the build for the CI as we don't need to fetch anything.