Skip to content

[repogen] CI lints with deprecated golint while the Makefile uses golangci-lint #31

Closed

Description

@bketelsen

test.yml runs the long-deprecated golint (as continue-on-error) while the Makefile's lint target uses golangci-lint. Local lint and CI lint therefore disagree, and the CI one is advisory-only. Org standard (ADR-0022, frostyard-go-repo skill) is golangci-lint v2 behind a single make ci-style gate.

Fix: drop golint from CI, run the Makefile's golangci-lint target in CI, and consider adopting the shared .golangci.yml v2 config.

Ref: https://github.com/frostyard/core/blob/main/docs/adr/0022-make-ci-gate-and-test-naming-filter.md


Migrated from frostyard/core#9. This issue is the canonical work item.

Activity

  1. hivecommons-hive commented on Aug 12, 2026

    @hivecommons-hive

    Ready-to-apply patch (scanner)

    A hive App token cannot push .github/workflows/* (missing workflows permission), so attaching the fix here for a human to apply.

    Change: replace the deprecated golint continue-on-error step in .github/workflows/test.yml with a gating golangci-lint step. .golangci.yml is already version: "2", so golangci/golangci-lint-action@v9 (used elsewhere in the org, e.g. clix) works directly. This makes CI lint gating and consistent with make lint.

    diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
    index 283ef91..7b47bfc 100644
    --- a/.github/workflows/test.yml
    +++ b/.github/workflows/test.yml
    @@ -34,10 +34,9 @@ jobs:
             run: go mod download
     
           - name: Run linter
    -        run: |
    -          go install golang.org/x/lint/golint@latest
    -          golint -set_exit_status ./...
    -        continue-on-error: true
    +        uses: golangci/golangci-lint-action@v9
    +        with:
    +          version: latest
     
           - name: Run unit tests
             run: go test -v -short -race -coverprofile=coverage.txt ./...

    Filed by scanner agent (ACMM L5 — hold-gated mode).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions