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

--new-from-rev=master throws error #1857

Closed
2 of 4 tasks
yash97 opened this issue Mar 17, 2021 · 1 comment
Closed
2 of 4 tasks

--new-from-rev=master throws error #1857

yash97 opened this issue Mar 17, 2021 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@yash97
Copy link

yash97 commented Mar 17, 2021

<!--
Thank you for creating the issue!
-->

  • 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 using --new-from-rev throws this error `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 \"master\" \"\": exit status 128"`
Version of golangci-lint
$ golangci-lint --version
1.38v
Config file
$ cat .golangci.yml
run:
  timeout: 3m

linters-settings:
    gci:
      local-prefixes: github.com/corp/proj

linters:
  disable-all: true
  enable:
    - golint
    - govet
    - gci
    - gofmt
issues:
  
Go environment
$ go version && go env
1.15
Verbose output of running
$ golangci-lint cache clean
$ golangci-lint run -v
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 \"master\" \"\": exit status 128"
Code example or link to a public repository
// add your code here

Running on jenkins with docker image of linter

@yash97 yash97 added the bug Something isn't working label Mar 17, 2021
@yash97 yash97 changed the title --new-from-rev: master throws error --new-from-rev=master throws error Mar 17, 2021
@ldez ldez added question Further information is requested and removed bug Something isn't working labels Mar 17, 2021
@ldez
Copy link
Member

ldez commented Mar 17, 2021

duplicate of #1088

@ldez ldez closed this as completed Mar 17, 2021
@ldez ldez added duplicate This issue or pull request already exists and removed question Further information is requested labels Mar 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants