Skip to content

Update Go to 1.17#17190

Merged
tklauser merged 3 commits intomasterfrom
pr/tklauser/update-go-1.17
Aug 23, 2021
Merged

Update Go to 1.17#17190
tklauser merged 3 commits intomasterfrom
pr/tklauser/update-go-1.17

Conversation

@tklauser
Copy link
Copy Markdown
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 had a problem deploying to release-base-images August 19, 2021 14:05 Failure
@tklauser tklauser force-pushed the pr/tklauser/update-go-1.17 branch from 190daaf to 24307fe Compare August 19, 2021 14:16
@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>
@tklauser tklauser force-pushed the pr/tklauser/update-go-1.17 branch from 24307fe to 5396672 Compare August 19, 2021 14:31
@tklauser tklauser marked this pull request as ready for review August 19, 2021 14:31
@tklauser tklauser requested review from a team as code owners August 19, 2021 14:31
@tklauser tklauser requested review from kkourt, nebril and pchaigno August 19, 2021 14:31
@tklauser tklauser requested a review from rolinh August 19, 2021 14:32
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 gandro August 19, 2021 14:39
@tklauser tklauser requested a review from aanm August 19, 2021 14:39
@tklauser tklauser requested a review from jrajahalme 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
Copy Markdown
Member Author

test-me-please

Copy link
Copy Markdown
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

😄

Comment thread bpf/tests/prog_test/prog_test.go
@tklauser
Copy link
Copy Markdown
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.

9 participants