Skip to content

Replace golangci-lint remote hook with local system hook - #28

Merged
bbrowning merged 1 commit into
mainfrom
golanci-lint-precommit
Jul 23, 2026
Merged

Replace golangci-lint remote hook with local system hook#28
bbrowning merged 1 commit into
mainfrom
golanci-lint-precommit

Conversation

@bbrowning

Copy link
Copy Markdown
Owner

The remote golangci-lint pre-commit hook was disabled due to a broken upstream dependency (MirrexOne/unqueryvet 403 on Go module proxy). Replace it with a local system hook that calls the pre-built binary directly, avoiding the upstream issue entirely.

Since golangci-lint subsumes both govet and gofmt (both enabled in .golangci.yml), remove the now-redundant gofmt and go-vet pre-commit hooks and the fmt-check Makefile target. Update make lint to use golangci-lint, and add golangci-lint binary installation to make install-hooks.

The remote golangci-lint pre-commit hook was disabled due to a broken
upstream dependency (MirrexOne/unqueryvet 403 on Go module proxy). Replace
it with a local system hook that calls the pre-built binary directly,
avoiding the upstream issue entirely.

Since golangci-lint subsumes both govet and gofmt (both enabled in
.golangci.yml), remove the now-redundant gofmt and go-vet pre-commit hooks
and the fmt-check Makefile target. Update make lint to use golangci-lint,
and add golangci-lint binary installation to make install-hooks.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@bbrowning
bbrowning merged commit 266808f into main Jul 23, 2026
6 checks passed
@bbrowning
bbrowning deleted the golanci-lint-precommit branch July 23, 2026 14: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.

1 participant