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

🌱 Require minimum version of Go 1.22.0 #4322

Merged
merged 3 commits into from
Sep 3, 2024

Conversation

spencerschrock
Copy link
Member

What kind of change does this PR introduce?

go directive bump

What is the current behavior?

Go 1.21 is the minimum version required to compile Scorecard or use it as a library.

What is the new behavior (if this is a feature change)?**

Go 1.22.0 is now the minimum version.

At least one of our dependencies now requires 1.22. Additionally, with the Go 1.23 release, Go 1.21 is no longer supported. Due to the loopvar changes, I'm submitting this as a standalone change.

  • Tests for the changes have been added (for bug fixes/features)

Which issue(s) this PR fixes

Unblocks #4319

Special notes for your reviewer

Note this is different from #3859 or #4300 which update our toolchain versions.

Does this PR introduce a user-facing change?

For user-facing changes, please add a concise, human-readable release note to
the release-note

(In particular, describe what changes users might need to make in their
application as a result of this pull request.)

Go 1.22.0 is now required to build Scorecard or use it as a library.

At least one of our dependencies now requires 1.22. Additionally, with
the Go 1.23 release, Go 1.21 is no longer supported. Due to the loopvar
changes, I'm submitting this as a standalone change.

https://go.dev/doc/go1.22

Signed-off-by: Spencer Schrock <sschrock@google.com>
This wasn't included in b314490,
because we didn't redeclare the loopvar with `tt := tt`, which is now
done by default in Go 1.22.0.

Signed-off-by: Spencer Schrock <sschrock@google.com>
Signed-off-by: Spencer Schrock <sschrock@google.com>
@spencerschrock spencerschrock requested a review from a team as a code owner August 29, 2024 20:44
@spencerschrock spencerschrock requested review from naveensrinivasan and raghavkaul and removed request for a team August 29, 2024 20:44
@spencerschrock spencerschrock changed the title Require minimum version of Go 1.22.0 🌱 Require minimum version of Go 1.22.0 Aug 29, 2024
@spencerschrock spencerschrock enabled auto-merge (squash) August 29, 2024 20:53
@spencerschrock
Copy link
Member Author

We could always look at new Go 1.22 golangci-lint linters in the future too:

@spencerschrock spencerschrock merged commit 71c6655 into ossf:main Sep 3, 2024
39 of 40 checks passed
@spencerschrock spencerschrock deleted the go-1.22.0 branch September 3, 2024 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants