Skip to content

fix: restore missing entrypoint + green CI (lint v2) - #2

Merged
stephnangue merged 1 commit into
mainfrom
fix/ci-lint
Jun 21, 2026
Merged

fix: restore missing entrypoint + green CI (lint v2)#2
stephnangue merged 1 commit into
mainfrom
fix/ci-lint

Conversation

@stephnangue

Copy link
Copy Markdown
Owner

Fixes the failing lint job on main (the build-test job was already green).

Cause: the workflow used golangci-lint-action@v6 (v1-era), which cannot parse the version: "2" config — golangci-lint exited with code 3 (a run failure, not lint findings).

Fix:

  • Upgrade to golangci-lint-action@v9 and pin golangci-lint v2.12.2.
  • Check the two real unchecked Close() returns (cmd/robin/main.go, internal/config/config.go).
  • Exempt errcheck from _test.go (unchecked response/request-body Close() in tests is noise).

Verified locally with golangci-lint v2.12.20 issues; go build / go vet / go test -race all green.

The lint job failed with golangci-lint exit code 3: the workflow pinned
golangci-lint-action@v6 (v1-era), which cannot read the version: "2"
config. Upgrade to golangci-lint-action@v9 and pin golangci-lint v2.12.2.

Also satisfy the linters it now runs: check the previously-ignored
Close() returns in main and config (explicit _ =), and exempt errcheck
from test files (unchecked body Close in tests is noise).

Fix .gitignore: the bare `robin` pattern matched the cmd/robin/ source
directory; narrow it to /robin (root build output only).

Verified locally with golangci-lint v2.12.2: 0 issues; build/vet/test
-race green. The build-test job was already passing.
@stephnangue
stephnangue merged commit db970b5 into main Jun 21, 2026
3 checks passed
@stephnangue
stephnangue deleted the fix/ci-lint branch June 21, 2026 11:38
@stephnangue stephnangue changed the title fix(ci): green the lint job (golangci-lint v2) fix: restore missing entrypoint + green CI (lint v2) Jun 21, 2026
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