Skip to content
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

remove vendor, clean up module files and Makefile #395

Merged
merged 1 commit into from
Jun 10, 2022

Conversation

LarryRuane
Copy link
Collaborator

It's better not to have the vendor directory; it was needed before
modules worked well in Go. These days, the go.mod and go.sum files
nail down the exact versions of each dependency as well as the vendor
directory did. There are many modern Go projects, such as
docker/compose, that don't have a vendor directory.

So don't run go vendor, or if you do, don't git-add the files that
are downloaded.

Another advantage of removing the vendor directory is that the repo is
only 9% of its former size.

Another thing I did as part of this commit is to remove all the
require lines in go.mod and then ran go tidy. This repopulated the
require lines but with the latest versions. This may fix #378 but I'm
not sure (because I still see gopkg.in/yaml.v2 v2.4.0 // indirect
in go.mod.

It's better not to have the vendor directory; it was needed before
modules worked well in Go. These days, the `go.mod` and `go.sum` files
nail down the exact versions of each dependency as well as the vendor
directory did. There are many modern Go projects, such as
docker/compose, that don't have a vendor directory.

So don't run `go vendor`, or if you do, don't git-add the files that
are downloaded.

Another advantage of removing the vendor directory is that the repo is
only 9% of its former size.

Another thing I did as part of this commit is to remove all the
`require` lines in `go.mod` and then ran `go tidy`. This repopulated the
require lines but with the latest versions. This may fix zcash#378 but I'm
not sure (because I still see `gopkg.in/yaml.v2 v2.4.0 // indirect`
in `go.mod`.
@LarryRuane LarryRuane added the cleanup No functional change label Jun 10, 2022
@LarryRuane LarryRuane merged commit 34f4f23 into zcash:master Jun 10, 2022
@LarryRuane LarryRuane deleted the 2022-06-remove-vendor branch June 10, 2022 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup No functional change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade Kubernetes API version
1 participant