Skip to content

golangci-lint context loading failed: no go files to analyze #706

@chengfang

Description

@chengfang

golangci-lint failed in CI run with errors: "context loading failed: no go files to analyze"

Need to fix configurations of golangci-lint:

  • .github/workflows/ci-tests.yaml
    • update golangci-lint action from v3 to v5
    • update the used golangci-lint version from 1.52.2 to 1.57.2
    • add an explicit setup-go step before running golangci-lint
  • .golangci.yml
    • update the used golangci-lint version from 1.52.2 to 1.57.2
    • reconfig the deprecated skip-files and skip-dirs
    • remove service field

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions