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 Go (and golangci-lint, and gqlgen) versions, and test codegen #362

Merged
merged 4 commits into from
Nov 30, 2024

Conversation

benjaminjkraft
Copy link
Collaborator

Originally my goal here was to add a check that generated code is up to date. (In #360 I was reminded that we have that for first-party code, but not gqlgen.)

Then I figured I'd update the Go version to support 1.23, which required updating gqlgen and golangci-lint, both of which now have minimum Go versions of 1.22. So now that's ours too. Those are the only upstream supported versions anyway, so hopefully people are updated.

I suspect the CI version-setting stuff can get simplified a bit with all the Go toolchain version stuff, but for now I didn't bother.

I have:

  • Written a clear PR title and description (above)
  • Signed the Khan Academy CLA
  • Added tests covering my changes, if applicable
  • Included a link to the issue fixed, if applicable
  • Included documentation, for new features
  • Added an entry to the changelog

Originally my goal here was to add a check that generated code is up to
date. (In #360 I was reminded that we have that for first-party code,
but not gqlgen.)

Then I figured I'd update the Go version to support 1.23, which required
updating gqlgen and golangci-lint, both of which now have minimum Go
versions of 1.22. So now that's ours too. Those are the only upstream
supported versions anyway, so hopefully people are updated.

I suspect the CI version-setting stuff can get simplified a bit with all
the Go toolchain version stuff, but for now I didn't bother.
Copy link
Member

@csilvers csilvers left a comment

Choose a reason for hiding this comment

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

Seems good to me!

@benjaminjkraft benjaminjkraft merged commit 1147aaf into main Nov 30, 2024
8 checks passed
@benjaminjkraft benjaminjkraft deleted the benkraft.generate-test branch November 30, 2024 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants