openfga / openfga/cli

golangci-lint version should be consistent

Open
#630 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
102
Forks
49
Avg merge
1d 1h
Merged PRs (30d)
16

Description

golangci-lint version should be consistent across CLI and language

Current State:

CLI: Uses golangci-lint-action v9.2.0 with version: latest in .github/workflows/main.yaml
Language: Installs via Makefile with @latest in pkg/go/Makefile

Desired State:

Standardize on GitHub Actions - Both repos should use the same golangci-lint-action
Pin to specific version - Replace version: latest with a pinned version (e.g., v2.10.1)
Align config format - Update Language's pkg/go/.golangci.yaml to use version 2 format like CLI

Acceptance Criteria:

Both repos use golangci-lint-action same pinned version
Both use version 2 config format
CI passes in both repos

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Compare .github/workflows/main.yaml and pkg/go/Makefile in the CLI with the corresponding files in the language repository. First inspect the existing golangci-lint-action and .golangci.yaml configurations, then run the relevant CI or lint checks. Done means both repositories use the same pinned action and version 2 configuration, with CI passing in each.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, go
Domain
ci-cd, tooling
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.