-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Switch to go mod #2327
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
Closed
Closed
Switch to go mod #2327
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
a037de0
Gopkg.lock: update k8s.io/apimachinery
8d0ebb1
Gopkg.lock: update k8s.io/api
558b8f1
Gopkg.lock: update k8s.io/kubernetes
2e70231
Gopkg.lock: update k8s.io/code-generator
4eb7e9b
Gopkg.lock: update k8s.io/client-go
12b2a3b
go.mod: switch from dep to go mod
dd5777b
go.{mod,sum}: initialize after first build
671192e
Gopkg.{lock,toml}: remove dep files
45d8b33
go build -v ./... after rebase
5da2
8000
9ef
go.{mod,sum}: run go build -v./...
e24ebe5
remove mention of Gopkg.{toml,lock}
24a6a80
Dockerfile: download dependencies using go mod vendor
2f3495e
remove mentions of dep
f4ec071
remove more mention of dep from .cicleci/config.yaml
4f5758b
enable GO111MODULE
b9ad617
.circleci/config.yml: another go mod vendor needing GO111MODULE=on
725cd6f
tools.go: pin packr version using tools.go
e5a7e9f
tools.go: add dependency on tool k8s.io/code-generator/cmd/go-to-prot…
98edbc7
tools.go: add dependency on tool k8s.io/code-generator/cmd/go-to-prot…
b590cb5
trigger ci build after flake
43d9d8a
tools.go: pin dependency on tool github.com/gogo/protobuf/protoc-gen-…
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 contains hidden or 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 hidden or 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
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.
I am not sure it is a good idea to use mod vendor in ci, it makes it different than the actual release. And it is ignored unless we pass it in
go build
andgo test
with-mod=vendor
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.
Personally I prefer checking in ./vendor to my repos, but the status quo in argo-cd is to download dependencies in CI (it used to use
dep ensure
, so I switched to usinggo mod -vendor
.)However, IIRC this doesn't quite work, as mod vendor doesn't download the entire dependency, only the transitively depended upon go code in the dependencies. This means that *.proto files, for example, aren't included in the download.
golang/go#26366
This means
go mod -vendor
anddep ensure
behave differently. Thevend
tool (https://github.com/nomad-software/vend) should be able to help.