Skip to content

Conversation

@jmcarp
Copy link
Contributor

@jmcarp jmcarp commented Jan 14, 2026

We're using an older version of golang-ci. This patch updates to latest, adds linting and formatting for long lines, and disables the errcheck linter due to noise. We also replace the previous make fmt target, which ran a linter rather than a formatter.

We're using an older version of golang-ci. This patch updates to latest, adds
linting and formatting for long lines, and disables the errcheck linter due to
noise. We also replace the previous `make fmt` target, which ran a linter
rather than a formatter.
@jmcarp jmcarp requested a review from a team as a code owner January 14, 2026 18:11
@jmcarp jmcarp mentioned this pull request Jan 14, 2026
Copy link
Collaborator

@sudomateo sudomateo left a comment

Choose a reason for hiding this comment

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

Looks great! I'll spin out an issue on Go tool dependencies based on the comment I left here.

Comment on lines +38 to +40
fmt: tools ## Formats Go code including long line wrapping.
@ echo "+ Formatting Go code..."
@ $(GOBIN)/golangci-lint fmt
Copy link
Collaborator

Choose a reason for hiding this comment

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

Definitely not for this pull request but I've been giving a bit of thought to how we use tools in our Go projects. Go 1.24 introduced support for tool dependencies where we can run tools using go tool that are versioned in go.mod separately from our normal dependencies. I'd love for us to switch to something like that rather than maintaining some VERSION_* env vars.

@jmcarp jmcarp merged commit 199901c into main Jan 14, 2026
2 checks passed
@jmcarp jmcarp deleted the bump-golangci branch January 14, 2026 19:42
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.

3 participants