Skip to content

Unable to detect git repo in 1.37 #1941

Closed
@naveensrinivasan

Description

@naveensrinivasan
  • Yes, I'm using a binary release within 2 latest major releases. Only such installations are supported.
  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've included all information below (version, config, etc).
  • Yes, I've tried with the standalone linter if available. (https://golangci-lint.run/usage/linters/)
Description of the problem

Upgrading from 1.36 to 1.37 is causing new issues checks fails.

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 HEAD~: exit status 128"

Version of golangci-lint
$ golangci-lint --version
# paste output here
1.37
Config file
$ cat .golangci.yml
# paste output here
Go environment
$ go version && go env
# paste output here
 1.16
Verbose output of running
$ golangci-lint cache clean
$ golangci-lint run -v
# paste output here
Code example or link to a public repository

ossf/scorecard#369

https://github.com/ossf/scorecard/runs/2461368761?check_suite_focus=true

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions