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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use golangci-lint new-from-rev option #696

Open
tinoquang opened this issue May 9, 2024 · 0 comments
Open

Can't use golangci-lint new-from-rev option #696

tinoquang opened this issue May 9, 2024 · 0 comments

Comments

@tinoquang
Copy link

I want to use the golangci-lint new-from-rev option (details). However, I encounter this issue

Run reviewdog/action-golangci-lint@v2
Installing Go ...
go env

馃惗 Installing reviewdog ... https://github.com/reviewdog/reviewdog
Installing golangci-lint ... https://github.com/golangci/golangci-lint
Restoring cache ...
Running golangci-lint ...
  /home/runner/work/_temp/reviewdog-0dbL9P/golangci-lint-1.58.1-linux-amd[64](https://github.com/PixoPH/pdax-imm-internal-market-making/actions/runs/9016044362/job/24771840077#step:3:66)/golangci-lint run --out-format line-number --config=.golangci-lint.yaml --new-from-rev=develop
  level=warning msg="The linter 'execinquery' is deprecated (since v1.58.0) due to: The repository of the linter has been archived by the owner. "
  level=warning msg="[runner] Can't process result by diff processor: can't prepare diff by revgrep: could not read git repo: error executing \"git diff --color=never --no-ext-diff --default-prefix --relative develop --\": exit status 128: fatal: bad revision 'develop'\n"

Here's my action file

    name: lint
    runs-on: ubuntu-latest
    steps:
      - name: Check out code into the Go module directory
        uses: actions/checkout@v4
        with:
          fetch-depth: 0

      - name: Run lint check
        uses: reviewdog/action-golangci-lint@v2
        with:
          reporter: github-pr-review
          golangci_lint_flags: "--config=.golangci-lint.yaml --new-from-rev=${{ github.base_ref }}"

Is there any suggestion to make it work? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant