-
Notifications
You must be signed in to change notification settings - Fork 80
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module github.com/reddit/baseplate.go | ||
|
||
go 1.21 | ||
go 1.22 | ||
|
||
require ( | ||
github.com/Shopify/sarama v1.29.1 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ package tracing_test | |
|
||
import ( | ||
"context" | ||
"fmt" | ||
"errors" | ||
"reflect" | ||
"testing" | ||
|
||
|
@@ -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) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. does go vet call this out now? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. staticcheck calls this out now: https://github.com/reddit/baseplate.go/actions/runs/10407002603/job/28821319767#step:6:7 There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. which I think makes sense, as there's a possibility |
||
} | ||
return nil | ||
} | ||
|
There was a problem hiding this comment.
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.