-
Notifications
You must be signed in to change notification settings - Fork 152
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
Switch to go modules #188
Closed
Closed
Switch to go modules #188
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
0bee749
Merge pull request #18 from pohly/go-version
k8s-ci-robot 066143d
build.make: allow repos to use 'go mod' for vendoring
pohly 0399988
Merge pull request #19 from pohly/go-mod-vendor
k8s-ci-robot db7f198
Merge commit '03999882f676a65ab71e11686c3b26b830d7700f' into go-modules2
bswartz e78a2eb
Switch to go modules
bswartz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
module github.com/kubernetes-csi/csi-test | ||
|
||
go 1.12 | ||
|
||
require ( | ||
github.com/container-storage-interface/spec v1.1.0 | ||
github.com/golang/mock v1.2.0 | ||
github.com/golang/protobuf v1.3.1 | ||
github.com/konsorten/go-windows-terminal-sequences v1.0.2 // indirect | ||
github.com/onsi/ginkgo v1.8.0 | ||
github.com/onsi/gomega v1.5.0 | ||
github.com/sirupsen/logrus v1.4.0 | ||
golang.org/x/crypto v0.0.0-20190313024323-a1f597ede03a // indirect | ||
golang.org/x/net v0.0.0-20190320064053-1272bf9dcd53 | ||
golang.org/x/sys v0.0.0-20190318195719-6c81ef8f67ca // indirect | ||
google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19 // indirect | ||
google.golang.org/grpc v1.19.0 | ||
gopkg.in/yaml.v2 v2.2.2 | ||
) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Strictly speaking, we currently don't need to set
GOFLAGS=-mod=vendor
because when building inGOPATH
, go 1.12 still defaults to non-module builds and then usesvendor
. I checked with strace. But I agree that it makes sense to already addGOFLAGS=-mod=vendor
because then we won't forget to add it when updating to 1.13 where modules are on by default.How to do it is a bit trickier. The way it is done here overrides whatever
GOFLAGS
the developer may have in his environment.make GOFLAGS=...
can be used to override this default.I think I prefer to not set GOFLAGS for developers. Just set it for CI builds, by adding it to
release-tools/travis.yml
andrelease-tools/prow.sh
.