-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
1.33.0 to 1.35.0 upgrade fail #1640
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
Comments
Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors. |
Here is my attempt on clean system: 21-01-10 12:41 % docker run --rm -it golang bash
Unable to find image 'golang:latest' locally
latest: Pulling from library/golang
6c33745f49b4: Pull complete
ef072fc32a84: Pull complete
c0afb8e68e0b: Pull complete
d599c07d28e6: Pull complete
c616e0dda35f: Pull complete
2e68d0e3d3c7: Pull complete
4dea2301be07: Pull complete
Digest: sha256:c47d6c4ee25e34c97f3b1a92923a913e266a2b4b95731e8f5aa9065ca9e7c7fc
Status: Downloaded newer image for golang:latest
root@135451366d56:/go# curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.35.0
golangci/golangci-lint info checking GitHub for tag 'v1.35.0'
golangci/golangci-lint info found version: 1.35.0 for v1.35.0/linux/amd64
golangci/golangci-lint info installed /go/bin/golangci-lint
root@135451366d56:/go# golangci-lint --version
golangci-lint has version 1.35.0 built from 1e5ba1e on 2021-01-08T02:12:28Z
root@135451366d56:/go# |
I think this is the main reason: git config --global url."https://${GHE_TOKEN}:[email protected]/".insteadOf "https://github.ibm.com/" |
Thanks - that seems a likely culprit since I have that setting in my local .gitconfig. Now I need to set it up in the CI image.
|
Maybe there are some changes, or new linters. It will be great if you can debug it. |
TL;DR:
Details:
|
Seems related to https://github.com/daixiang0/gci/blob/master/pkg/gci/gci.go#L39 |
It's because you are vendoring your dependencies.
So you have several solutions:
|
|
yes, it's because of |
I really recommend trying a private go proxy instead of playing with |
I created a PR to fix the problem in gci daixiang0/gci#29 |
@esinek the v1.35.2 release is created, could you please test it? |
It worked. Thanks for the quick turnaround all
|
Great! |
Thank you for creating the issue!
Please include the following information:
Version of golangci-lint
Config file
Go environment
Verbose output of running
I'm seeing issues with version 1.35.0 that do not exist with version 1.33.0
First, the version of golangci linter that works...
Here's the excerpt in the Jenkins script
... and here's the output
Next, the version of the linter that fails...
Here's the excerpt in the Jenkins script
... and here's the output
The above two CI runs were exactly the same except the change from version 1.33.0 to 1.35.0 (I used the Jenkins Job Replay and modified the one character and clicked "RUN")
Note that when I run 1.35.0 on my local Mac against my project it works fine. I'm only getting the above error when running it in Jenkins
Let me know if need more info
The text was updated successfully, but these errors were encountered: