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

Update Go to 1.17 #17190

Merged
merged 3 commits into from Aug 23, 2021
Merged

Update Go to 1.17 #17190

merged 3 commits into from Aug 23, 2021

Conversation

tklauser
Copy link
Member

@tklauser tklauser commented Aug 19, 2021

First commit updates the Go version for Cilium build and updates the Docker images.

Second commit changes go.mod to go 1.17 to use the new module graph pruning, see https://golang.org/doc/go1.17#graph-pruning

Third commit adds //go:build lines in addition to existing //+build lines, as automatically done by gofmt in Go 1.17. Note that also some files generated by deepcopy-gen were changed. These changes will be lost on the next update until we update to a version of deepcopy-gen which includes kubernetes-sigs/controller-tools#595.

@tklauser tklauser added the release-note/misc This PR makes changes that have no direct user impact. label Aug 19, 2021
@tklauser tklauser temporarily deployed to release-base-images August 19, 2021 14:05 Inactive
@tklauser tklauser temporarily deployed to release-base-images August 19, 2021 14:16 Inactive
@tklauser tklauser temporarily deployed to release-base-images August 19, 2021 14:16 Inactive
Signed-off-by: Tobias Klauser <tobias@cilium.io>
Bump the go version in go.mod to 1.17. This will change the module graph
to include only the immediate dependencies of other go 1.17 modules, not
their full transitive dependencies. As a consequence of this, the
newly-added requirements on indirect dependencies are added by `go mod
tidy` in a separate require block.

See https://golang.org/doc/go1.17#graph-pruning and
https://golang.org/ref/mod#graph-pruning for details.

Signed-off-by: Tobias Klauser <tobias@cilium.io>
Starting with Go 1.17, `//go:build` lines are preferred over `// +build`
lines, see https://golang.org/doc/go1.17#build-lines and
https://golang.org/design/draft-gobuild for details.

This change was generated by running Go 1.17 `gofmt -w .` which
automatically adds `//go:build` lines based on the existing `// +build`
lines.

Signed-off-by: Tobias Klauser <tobias@cilium.io>
@tklauser tklauser requested a review from a team August 19, 2021 14:39
@tklauser tklauser requested review from a team as code owners August 19, 2021 14:39
@tklauser tklauser requested a review from aanm August 19, 2021 14:39
@tklauser tklauser closed this Aug 19, 2021
@tklauser tklauser reopened this Aug 19, 2021
@tklauser tklauser temporarily deployed to release-base-images August 19, 2021 14:52 Inactive
@tklauser tklauser temporarily deployed to release-base-images August 19, 2021 14:52 Inactive
@tklauser
Copy link
Member Author

test-me-please

Copy link
Member

@aanm aanm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How many teams do you want to request review?
Yes

😄

bpf/tests/prog_test/prog_test.go Show resolved Hide resolved
@tklauser
Copy link
Member Author

Received 4 reviews from teams covering the most important aspects of the change (@cilium/build, @cilium/ci-structure and @cilium/vendor). The other groups were requested due to the gofmt change (3rd commit) changing build tags across the entire code base. All tests passed, thus merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants