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

Bump Go tooling to version 1.20 #12380

Merged
merged 3 commits into from
Apr 28, 2023
Merged

Bump Go tooling to version 1.20 #12380

merged 3 commits into from
Apr 28, 2023

Conversation

nywilken
Copy link
Contributor

No description provided.

@nywilken nywilken marked this pull request as ready for review April 27, 2023 18:54
@nywilken nywilken requested a review from a team as a code owner April 27, 2023 18:54
@nywilken nywilken added the backport/1.8.x Backport PR changes to `release/1.8.x` label Apr 27, 2023

Unverified

The committer email address is not verified.
* Fix go vet issue

* Bump Go tooling to version 1.20

* Update workflows to use go-version file

Unverified

The committer email address is not verified.

Verified

This commit was signed with the committer’s verified signature. The key has expired.
BridgeAR Ruben Bridgewater
Copy link
Contributor

@lbajolet-hashicorp lbajolet-hashicorp left a comment

Choose a reason for hiding this comment

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

Aside from the question I left for tests, this looks good to me!

@@ -53,6 +53,7 @@ func TestBuildCommand_RunContext_CtxCancel(t *testing.T) {
}

for _, tt := range tests {
tt := tt
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 understand that change, is there something missing here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah yes so in Go 1.20 the vet command will call this out as an issue. Since this is a common mistake.

Take from the Go release notes

The vet tool now reports references to loop variables following a call to [T.Parallel()](https://tip.golang.org/pkg/testing/#T.Parallel) within subtest function bodies. Such references may observe the value of the variable from a different iteration (typically causing test cases to be skipped) or an invalid state due to unsynchronized concurrent access.

@nywilken nywilken merged commit 06fe087 into main Apr 28, 2023
@nywilken nywilken deleted the bump-go-1.20 branch April 28, 2023 17:57
nywilken pushed a commit that referenced this pull request Apr 28, 2023

Verified

This commit was signed with the committer’s verified signature. The key has expired.
BridgeAR Ruben Bridgewater
Bump Go tooling to version 1.20
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/1.8.x Backport PR changes to `release/1.8.x`
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants