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:build tags to use go1.22 #5608

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

thaJeztah
Copy link
Member

@thaJeztah thaJeztah commented Nov 12, 2024

commit 4a7b04d configured golangci-lint to use go1.23 semantics, which enabled the copyloopvar linter.

go1.22 now creates a copy of variables when assigned in a loop; make sure we don't have files that may downgrade semantics to go1.21 in case that also means disabling that feature; https://go.dev/ref/spec#Go_1.22

- A picture of a cute animal (not mandatory but encouraged)

@codecov-commenter
Copy link

codecov-commenter commented Nov 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.63%. Comparing base (917d2dc) to head (7c80e4f).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5608   +/-   ##
=======================================
  Coverage   59.63%   59.63%           
=======================================
  Files         346      346           
  Lines       29208    29208           
=======================================
  Hits        17417    17417           
  Misses      10822    10822           
  Partials      969      969           

commit 4a7b04d configured golangci-lint
to use go1.23 semantics, which enabled the copyloopvar linter.

go1.22 now creates a copy of variables when assigned in a loop; make sure we
don't have files that may downgrade semantics to go1.21 in case that also means
disabling that feature; https://go.dev/ref/spec#Go_1.22

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah merged commit a422840 into docker:master Nov 12, 2024
92 checks passed
@thaJeztah thaJeztah deleted the go1.22_buildtags branch November 12, 2024 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants