Skip to content

Timeout exceeded: try increasing it by passing --timeout option #3631

Closed Answered by Antonboom
alita1991 asked this question in Q&A
Discussion options

You must be logged in to vote

should I run "go mod download"

No, it has nothing to do with linter.


  1. Try to set implicitly skip-cache: false (https://github.com/golangci/golangci-lint-action#how-to-use)
  2. Use the last version of actions
  3. Set the specific version of Go

Example:

jobs:
  lint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/setup-go@v3
        with:
          go-version: '1.20'
      - uses: actions/checkout@v3
      - uses: golangci/golangci-lint-action@v3
        with:
          version: v1.51.2
          args: --timeout=5m
          skip-cache: false

P.S. I checked CI-time of one of my big-size projects which locally linted in seconds:

succeeded 5 days ago in 2m 36s

And it seems it's a …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@alita1991
Comment options

@Antonboom
Comment options

Answer selected by Antonboom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants