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

build: upgrade to Go 1.17 #7371

Merged
merged 2 commits into from
Nov 30, 2021
Merged

build: upgrade to Go 1.17 #7371

merged 2 commits into from
Nov 30, 2021

Conversation

Juneezee
Copy link
Contributor

This PR introduces three changes:

  1. Update the go directive in go.mod to 1.17. Note: the additional require directive enables module graph pruning and lazy module loading supported by Go 1.17 and higher. It is added automatically by running go mod tidy -go=1.17.

  2. Update all Dockerfiles from golang:1.16.2 to golang:1.17.3

  3. Update all CI to use Go 1.17

@Juneezee Juneezee requested a review from a team as a code owner November 29, 2021 08:53
Copy link
Contributor

@Pothulapati Pothulapati left a comment

Choose a reason for hiding this comment

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

Thanks for taking this up!

@@ -53,6 +51,120 @@ require (
sigs.k8s.io/yaml v1.3.0
)

require (
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see why this require block is required, as we have one above!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is automatically added when I run go mod tidy -go=1.17. This enables module graph pruning and lazy module loading supported by Go 1.17 and higher.

@Juneezee Juneezee requested a review from Pothulapati November 29, 2021 10:37
This commit introduces three changes:
	1. Update the `go` directive in `go.mod` to 1.17
	2. Update all Dockerfiles from `golang:1.16.2` to
	   `golang:1.17.3`
	3. Update all CI to use Go 1.17

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
This commit synchronizes `//go:build` lines with `// +build` lines.

Reference: https://go.googlesource.com/proposal/+/master/design/draft-gobuild.md
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
Copy link
Member

@olix0r olix0r left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Member

@alpeb alpeb left a comment

Choose a reason for hiding this comment

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

Very nice, thanks @Juneezee !

@alpeb alpeb merged commit f2fb35a into linkerd:main Nov 30, 2021
kleimkuhler added a commit that referenced this pull request Dec 8, 2021
#7371 upgraded the Go version which included using the new formats for [build constraints](https://pkg.go.dev/cmd/go#hdr-Build_constraints). This removes the old ones that are no longer used.

Signed-off-by: Kevin Leimkuhler <kleimkuhler@icloud.com>
olix0r pushed a commit that referenced this pull request Apr 12, 2022
* build: upgrade to Go 1.17

This commit introduces three changes:
	1. Update the `go` directive in `go.mod` to 1.17
	2. Update all Dockerfiles from `golang:1.16.2` to
	   `golang:1.17.3`
	3. Update all CI to use Go 1.17

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>

* chore: run `go fmt ./...`

This commit synchronizes `//go:build` lines with `// +build` lines.

Reference: https://go.googlesource.com/proposal/+/master/design/draft-gobuild.md
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
(cherry picked from commit f2fb35a)
Signed-off-by: Oliver Gould <ver@buoyant.io>
olix0r pushed a commit that referenced this pull request Apr 14, 2022
#7371 upgraded the Go version which included using the new formats for [build constraints](https://pkg.go.dev/cmd/go#hdr-Build_constraints). This removes the old ones that are no longer used.

Signed-off-by: Kevin Leimkuhler <kleimkuhler@icloud.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants