Skip to content

fix: update lint Makefile target to use system golangci-lint#411

Open
Bortlesboat wants to merge 1 commit intoagentregistry-dev:mainfrom
Bortlesboat:fix-lint-makefile
Open

fix: update lint Makefile target to use system golangci-lint#411
Bortlesboat wants to merge 1 commit intoagentregistry-dev:mainfrom
Bortlesboat:fix-lint-makefile

Conversation

@Bortlesboat
Copy link
Copy Markdown

Fixes #377

Summary

After PR #253 removed golangci-lint from Go tools, make lint fails with:

go: no such tool "golangci-lint"

Fix

Update GOLANGCI_LINT variable to use the system-installed golangci-lint binary instead of go tool golangci-lint. Add a pre-flight check that prints an install link if the binary is not found.

This matches the CI approach in .github/workflows/lint.yml which uses the golangci/golangci-lint-action.

Test plan

  • make lint works with system-installed golangci-lint
  • make lint prints helpful error if golangci-lint is not installed

Fixes agentregistry-dev#377

After PR agentregistry-dev#253 removed golangci-lint from Go tools, make lint fails
with 'go: no such tool golangci-lint'. Update the GOLANGCI_LINT
variable to use the system-installed binary instead of go tool, and
add a pre-flight check with an install link on failure.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Broken lint Makefile target

1 participant