-
Notifications
You must be signed in to change notification settings - Fork 33
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
finish off Go 1.22 upgrade #926
Conversation
0ffdbcc
to
e6c630f
Compare
0e2f46a
to
23cb500
Compare
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.
Looks reasonable. Sorry I missed this stuff :(.
I'm happy to help overall/improve the CI situation as well.
This patch cleans up some stragglers in the CircleCI config that were still running on 1.19. We also change `go.mod` to include the patch portion of the Go version. Including `x.y.z`, not just `x.y` is what the Go 1.22 tooling (and, I believe 1.21) does and expects. If we don't include the patch version, various third party tools like GitHub's CodeQL can break (see github/codeql#15647 for the last time I ran into this). This go.mod version change is actually what led me to the other missing CircleCI version bumps as changing go.mod broke those CircleCI jobs. Along the way, we remove some dependency installations from the linting CircleCI job. While future linting maybe need these dependencies, the current ones do not. I've made AUT-158 to consolidate our go linting stuff and avoid some of these problems. Some (not all) of the rationale for AUT-158 will be mooted by a move to GitHub Actions. Along the way, I also ran `go mod tidy` which correctly noted that the the google/uuid dep is now a direct dep. Hilariously, this is the change I did first. do less work in the lint-vet-fmt job
23cb500
to
a59c542
Compare
Sorry to request the re-review, but I realized we could just not install deps at all in the linting CircleCI job. Have simplified the code and corrected the PR summary and commit message. |
Can you clarify why this is? |
The apt dependencies that were being installed aren't actually being used in any of the linting processes, so they're irrelevant. Once you remove those, the failures of |
Specifically, the errors are here:
Note the commit they're on was when I flipped from bookworm to the go CircleCI image. |
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.
Thanks for the additional info!
This patch cleans up some stragglers in the CircleCI config that were
still running on 1.19.
We also change
go.mod
to include the patch portion of the Go version.Including
x.y.z
, not justx.y
is what the Go 1.22 tooling (and, Ibelieve 1.21) does and expects. If we don't include the patch version,
various third party tools like GitHub's CodeQL can break (see
github/codeql#15647 for the last time I ran
into this). This go.mod version change is actually what led me to the
other missing CircleCI version bumps as changing go.mod broke those
CircleCI jobs.
Along the way, we remove some dependency installations from the linting
CircleCI job. While future linting maybe need these dependencies, the
current ones do not.
I've made AUT-158 to consolidate our go linting stuff and avoid some of
these problems. Some (not all) of the rationale for AUT-158 will be
mooted by a move to GitHub Actions.
Along the way, I also ran
go mod tidy
which correctly noted that thethe google/uuid dep is now a direct dep. Hilariously, this is the change
I did first.