Skip to content

fix(ci): govulncheck via go run; golangci-lint v2 module path + GOBIN - #3

Merged
onokonem merged 1 commit into
mainfrom
fix/periodic-checks-2
Aug 9, 2026
Merged

fix(ci): govulncheck via go run; golangci-lint v2 module path + GOBIN#3
onokonem merged 1 commit into
mainfrom
fix/periodic-checks-2

Conversation

@onokonem

@onokonem onokonem commented Aug 9, 2026

Copy link
Copy Markdown
Member

The first live dispatch of the merged fix showed two residual issues (test job now passes — the flaky-test fix holds):

  1. dependency-check — mise-action redirects GOBIN to the mise toolchain dir, so go install + a GOPATH/bin PATH export still cannot find govulncheck (exit 127). Switch to go run golang.org/x/vuln/cmd/govulncheck@latest ./... — no PATH wiring needed (same pattern as ccr-models-usage).

  2. latest-lintergo install github.com/golangci/golangci-lint/cmd/golangci-lint@latest resolves to the last v1 (v2 lives at the /v2 module path), and v1 rejects the repo's v2 config: "you are using a configuration file for golangci-lint v2 with golangci-lint v1". Verified locally: go install .../v2/cmd/golangci-lint@latest → 2.12.2. PATH export now honors GOBIN (fallback GOPATH/bin).

Verified: YAML valid; golangci-lint 2.12.2 build+run works locally; govulncheck go-run pattern proven in the sibling repo.

The first live dispatch showed the PR #2 fix was incomplete:

- dependency-check: mise-action sets GOBIN to the mise toolchain dir
  (~/.local/share/mise/installs/go/<ver>/bin), so 'go install' + a
  GOPATH/bin PATH export still left govulncheck unresolvable (127).
  Use 'go run ...govulncheck@latest' instead — no PATH wiring needed.

- latest-linter: go install without the /v2 module path resolves to the
  last golangci-lint v1 (@latest follows the module, and v2 lives at
  github.com/golangci/golangci-lint/v2), which rejects the repo's v2
  config ('configuration file for golangci-lint v2 with v1'). Verified:
  installing with the /v2 path yields 2.12.2. PATH export now honors
  GOBIN (falls back to GOPATH/bin).
@onokonem
onokonem merged commit ba1b1f1 into main Aug 9, 2026
2 checks passed
@onokonem
onokonem deleted the fix/periodic-checks-2 branch August 9, 2026 13:21
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