Skip to content

Remove golangci-lint - #1337

Open
sudo-bmitch wants to merge 1 commit into
opencontainers:mainfrom
sudo-bmitch:pr-rm-golangci
Open

Remove golangci-lint#1337
sudo-bmitch wants to merge 1 commit into
opencontainers:mainfrom
sudo-bmitch:pr-rm-golangci

Conversation

@sudo-bmitch

@sudo-bmitch sudo-bmitch commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

golangci-lint was Go version dependent to build, and resulted in more maintenance overhead than code fixes. Instead, this switches to "go fmt" and "go vet" for some minimal compiler checks.

This linter is Go version dependent, and results in more maintenance overhead than code fixes.
Instead, this switches to "go fmt" and "go vet" for some minimal compiler checks.

Signed-off-by: Brandon Mitchell <git@bmitch.net>
Comment thread Makefile
Comment on lines +90 to +92
@test -z "$(go fmt ./...)"
@test -z "$(go vet ./...)"
@[ "$$BUILD_SPEC_MODULE_ONLY" = true ] || ( cd schema && test -z "$(go fmt ./...)" && test -z "$(go vet ./...)" )

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why capturing? Both command return non-zero with useful output IME when they're just run (and they both support -C):

Suggested change
@test -z "$(go fmt ./...)"
@test -z "$(go vet ./...)"
@[ "$$BUILD_SPEC_MODULE_ONLY" = true ] || ( cd schema && test -z "$(go fmt ./...)" && test -z "$(go vet ./...)" )
@go fmt ./...
@go vet ./...
@[ "$$BUILD_SPEC_MODULE_ONLY" = true ] || { go -C schema fmt ./... && go -C schema vet ./...; }

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