-
-
Notifications
You must be signed in to change notification settings - Fork 152
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
Github Actions lint failures on 1.53.0 #761
Comments
Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors. |
SebastienMelki
changed the title
Lint failures on 1.53.0
Github Actions lint failures on 1.53.0
Jun 2, 2023
Same issue here. |
遇到一样的问题,还以为代码出问题了,结果是lint的最新版问题。 |
Duplicate of golangci/golangci-lint#3862 Fixed by golangci/golangci-lint#3866 |
3 tasks
Thanks @ldez ! I missed that one |
4 tasks
This was referenced Jun 2, 2023
ldez
added
duplicate
This issue or pull request already exists
upstream
related the golangci-lint but not to the action
and removed
bug
Something isn't working
labels
Jun 19, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Welcome
Description of the problem
Hello,
I noticed our github actions failing this morning even though we didn't change anything related to golangci-lint config.
I noticed that today it was pulling version 1.53.0 (because we configured it to get latest). Everything worked fine on 1.52.2 last night. But today it fails on 1.53.0 with this error. I forced the version to 1.52.2 to unblock myself now, but was wondering was the issue. Attaching two screenshots to show the difference between the run on 1.52.2 and 1.53.0
level=error msg="[linter] depguard: create analyzer: couldn't expand $gostd: could not read GOROOT directory: open src: no such file or directory\nmust have an Allow and/or Deny package list"
Error: golangci-lint exit with code 3
This works 1.52.2:
This doesn't work 1.53.0:
Version of golangci-lint
1.53.0
Configuration file
Go environment
Verbose output of running
Code example or link to a public repository
` golangci:
name: lint
runs-on: self-hosted
steps:
- uses: actions/setup-go@v4
with:
go-version: '1.20'
cache: false
- uses: actions/checkout@v3
with:
submodules: true
token: ${{ secrets.GH_PAT }}
The text was updated successfully, but these errors were encountered: