Pin versions for dependencies in Makefile #721
Closed
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.
The indirect dependencies in
go.mod
, specificallygolang.org/x/tools
andjackfan.us.kg/kisielk/errcheck
, are not really used anywhere in the code.go mod tidy
also removes these lines. They are only used in theMakefile
usinggo get
.Currently, no version is specified while using
go get
. This means that go will try to fetch the latest version and this version can deviate from the version ingo.mod
. To avoid this, the PR updates the Makefile to explicitlygo get
the versions specified ingo.mod
.Additionally, this PR also updates the versions to match the versions in
v1.3.1
i.e. avoids the version bumps made in #717:github.com/kisielk/errcheck
tov1.2.0
golang.org/x/tools
torelease-branch.go1.15
Context - bumping gogo/protobuf from v1.3.1 to v1.3.2 in kubernetes requires bumping x/tools as well, which we'd like to avoid in k8s (xref kubernetes/client-go#927)
cc @awalterschulze