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 for go 1.24 #682

Merged
merged 1 commit into from
Feb 18, 2025
Merged

Update for go 1.24 #682

merged 1 commit into from
Feb 18, 2025

Conversation

fishy
Copy link
Member

@fishy fishy commented Feb 14, 2025

  • Update go.mod to require 1.23+
  • Update CI to run on go 1.23 & 1.24

@fishy fishy requested a review from a team as a code owner February 14, 2025 20:38
@fishy fishy requested review from kylelemons, konradreiche and mathyourlife-reddit and removed request for a team February 14, 2025 20:38
- Update go.mod to require 1.23+
- Update CI to run on go 1.23 & 1.24
@@ -57,7 +57,6 @@ var expectedMetrics = []string{
"go_godebug_non_default_behavior_randautoseed_events_total",
"go_godebug_non_default_behavior_tarinsecurepath_events_total",
"go_godebug_non_default_behavior_tlsmaxrsasize_events_total",
"go_godebug_non_default_behavior_x509sha1_events_total",
Copy link
Member Author

Choose a reason for hiding this comment

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

this is no longer available in go 1.24.

@kylelemons I think we should remove all the godebug ones here unless we really care about some of them.

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 internal references to them in CS, and v2 only checks for a small subset of these for regressions.

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, every time we need to update go minor version this test will break, and I'll make the same suggestion of only check for a subset that we really care about, and I believe there are always some objections to that suggestion.

@@ -57,7 +57,6 @@ var expectedMetrics = []string{
"go_godebug_non_default_behavior_randautoseed_events_total",
"go_godebug_non_default_behavior_tarinsecurepath_events_total",
"go_godebug_non_default_behavior_tlsmaxrsasize_events_total",
"go_godebug_non_default_behavior_x509sha1_events_total",
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 internal references to them in CS, and v2 only checks for a small subset of these for regressions.

@@ -1,6 +1,6 @@
module github.com/reddit/baseplate.go

go 1.22.0
go 1.23
Copy link
Contributor

Choose a reason for hiding this comment

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

🔕 I think it wants 1.23.0 nowadays... I've run into a few issues with totally dropping the third dot, e.g. when things parse it out and expect e.g. GOTOOLCHAIN=<that> to work

Copy link
Member Author

Choose a reason for hiding this comment

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

do you have an example of dropping patch release from go line breaks things?

Copy link
Member Author

Choose a reason for hiding this comment

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

will merge this as-is. we can add .0 if this really breaks something (I don't think it will)

@fishy fishy merged commit 1134316 into reddit:master Feb 18, 2025
2 checks passed
@fishy fishy deleted the go-1.24 branch February 18, 2025 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants