-
Notifications
You must be signed in to change notification settings - Fork 81
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
CLOUDP-269300: Bump to Go 1.23 #1841
Conversation
@roothorp I would make this a draft until we figure out the licenses issue. BTW, I can take this PR if you want. |
Taking this from @roothorp will make it a draft while I figure out the licenses issue |
edb93f6
to
fb21100
Compare
export GOOS=linux | ||
export GOARCH=amd64 | ||
go run github.com/google/$(GO_LICENSES)@v$(GO_LICENSES_VERSION) csv --include_tests $(BASE_GO_PACKAGE)/... > licenses.csv |
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.
Not the prettiest fix, but the only one I could find.
From here:
google/go-licenses#149 (comment)
Seems we won't be able to use devbox/nix for the go-licenses binary and instead need to use it as a module dep.
cc @roothorp
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.
one nit, else lgtm 👍
Fixes applied |
Use %w for error wrapping Co-authored-by: Sergiusz Urbaniak <sergiusz.urbaniak@gmail.com> Signed-off-by: jose.vazquez <jose.vazquez@mongodb.com>
a8c6a16
to
30cc42b
Compare
Actually @s-urbaniak , we need to roll that last fix back: pkg/controller/atlasproject/custom_roles.go:203:28: printf: fmt.Errorf format %w has arg stat.Error of wrong type string (govet)
err = errors.Join(err, fmt.Errorf("%w", stat.Error)) stat.Error is not an |
Revert to use `%s` again, because `stat.Error` is a `string` and thus cannot be wrapped as an error.
Including the relevant golangci version bump to support Go 1.23.
Also includes other miscellaneous version updates for devbox (these will be automated similar to dependabot in future).
wrt
exportloopref
:All Submissions:
closes #XXXX
in your comment to auto-close the issue that your PR fixes (if there is one).