Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The "rebuild" of v2 broke github actions on my repo #172

Closed
dtracers opened this issue Feb 23, 2021 · 1 comment · Fixed by #173
Closed

The "rebuild" of v2 broke github actions on my repo #172

dtracers opened this issue Feb 23, 2021 · 1 comment · Fixed by #173
Assignees
Labels
bug Something isn't working

Comments

@dtracers
Copy link

Failed to run: Error: ENOENT: no such file or directory, open 'go.mod', Error: ENOENT: no such file or directory, open 'go.mod'
    at Object.openSync (fs.js:440:3)
    at Object.readFileSync (fs.js:342:35)
    at getRequestedLintVersion (/home/runner/work/_actions/golangci/golangci-lint-action/v2/dist/run/index.js:2286:28)
    at Object.<anonymous> (/home/runner/work/_actions/golangci/golangci-lint-action/v2/dist/run/index.js:2323:32)
    at Generator.next (<anonymous>)
    at /home/runner/work/_actions/golangci/golangci-lint-action/v2/dist/run/index.js:2233:71
    at new Promise (<anonymous>)
    at module.exports.__awaiter (/home/runner/work/_actions/golangci/golangci-lint-action/v2/dist/run/index.js:2229:12)
    at Object.findLintVersion (/home/runner/work/_actions/golangci/golangci-lint-action/v2/dist/run/index.js:2321:12)
    at /home/runner/work/_actions/golangci/golangci-lint-action/v2/dist/run/index.js:6724:47
Error: ENOENT: no such file or directory, open 'go.mod'

It was working yesterday but now is broken on changed repos.

Github actions setup:

      # LINTING STARTS HERE
      - name: Run golangci-lint Code Performance
        uses: golangci/golangci-lint-action@v2
        with:
          working-directory: ${{ matrix.lintfolder }}
          args: --issues-exit-code=0 --tests=false --skip-dirs=test -E=exportloopref -E=interfacer -E=maligned -E=prealloc
@SVilgelm SVilgelm self-assigned this Feb 24, 2021
@SVilgelm SVilgelm added the bug Something isn't working label Feb 24, 2021
@SVilgelm
Copy link
Member

@dtracers could you please check? The issue is fixed in v2|v2.5.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants