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 supported go versions to 1.22+1.23 #659

Merged
merged 1 commit into from
Aug 15, 2024
Merged

Conversation

fishy
Copy link
Member

@fishy fishy commented Aug 15, 2024

No description provided.

@fishy fishy requested a review from a team as a code owner August 15, 2024 16:23
@fishy fishy requested review from kylelemons, konradreiche and mathyourlife-reddit and removed request for a team August 15, 2024 16:23
@@ -50,7 +50,6 @@ var expectedMetrics = []string{
"go_godebug_non_default_behavior_http2client_events_total",
"go_godebug_non_default_behavior_http2server_events_total",
"go_godebug_non_default_behavior_installgoroot_events_total",
"go_godebug_non_default_behavior_jstmpllitinterp_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 seems to be no longer in go 1.23.

@fishy fishy force-pushed the update-go-versions branch from 16fe0ae to 2bed71d Compare August 15, 2024 16:26
@@ -19,7 +19,7 @@ type CallContainer struct {
func (c *CallContainer) AddCall(call string, fail bool) error {
c.Calls = append(c.Calls, call)
if fail {
return fmt.Errorf(call)
return errors.New(call)
Copy link
Contributor

Choose a reason for hiding this comment

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

does go vet call this out now?

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

the main point I think is the dynamic string part, so a string literal would still work, and if you use something like fmt.Errorf("%s", call) that likely also works.

Copy link
Member Author

Choose a reason for hiding this comment

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

which I think makes sense, as there's a possibility call contains some format verbs and then fmt.Errorf(call) would cause an error.

@fishy fishy merged commit 8264c73 into master Aug 15, 2024
2 checks passed
@fishy fishy deleted the update-go-versions branch August 15, 2024 20:35
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