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

Bump golangci-lint and (max) Go versions #219

Merged
merged 3 commits into from
Aug 15, 2022
Merged

Conversation

benjaminjkraft
Copy link
Collaborator

@benjaminjkraft benjaminjkraft commented Aug 15, 2022

Lint is failing with some inscrutable panic (on a commit with no code
changes). Let's try bumping the version in case they fixed it.

Additionally, the new version's github action uses Go 1.19, which means
it pulls in gofmt updates to match the new doc-comment formatting rules.
So I added Go 1.19 to our list of versions to test (fixes #216)
and updated some of our doc-comments to format better in the
new world (mostly using the new link syntax).

Test plan: make lint

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

Lint is failing with some inscrutable panic (on a commit with no code
changes). Let's try bumping the version in case they fixed it.

While I was at it, I added Go 1.19 to the list of versions we test,
since it's out now (fixes #216).

Test plan: make lint
@benjaminjkraft
Copy link
Collaborator Author

Turns out the newest golangci-lint also uses Go 1.19, and turns out that means we need to update gofmt which does some new doc-comment formatting, and then I want to tweak some of our formatting while I'm at it. Will return to this later.

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.

Looks good once the latest lint errors are fixed!

@benjaminjkraft benjaminjkraft merged commit f600b6e into main Aug 15, 2022
@benjaminjkraft benjaminjkraft deleted the benkraft.lint-bump branch August 15, 2022 22:05
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.

Add 1.19 to tests
2 participants