You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
golangcli-lint run command now fails with the following error
Running error: buildir: analysis skipped: errors in package: [src/server/pkg/iputil/iprange.go:13:2: could not import server/locerrors (src/server/locerrors/main.go:11:2: could not import server/pkg/locerror (src/server/pkg/locerror/locerror.go:6:2: could not import archive/zip (/gopath/linux64/src/archive/zip/reader.go:639:2: IsDir redeclared)))]
I believe skip-dirs loads the folder although i have set directory locerror to skip.
Can someone suggest on how i can work around this issue.
This discussion was converted from issue #1912 on April 15, 2021 16:23.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a code that is importing archive/zip package. I run golangci-lint against the code and all works fine in go1.15
however in go1.16 there was a change introduced in archive/zip/reader.go (https://go.googlesource.com/go/+/refs/tags/go1.16.3/src/archive/zip/reader.go#655)
I have the following linter configuration
golangcli-lint run command now fails with the following error
Running error: buildir: analysis skipped: errors in package: [src/server/pkg/iputil/iprange.go:13:2: could not import server/locerrors (src/server/locerrors/main.go:11:2: could not import server/pkg/locerror (src/server/pkg/locerror/locerror.go:6:2: could not import archive/zip (/gopath/linux64/src/archive/zip/reader.go:639:2: IsDir redeclared)))]
I believe skip-dirs loads the folder although i have set directory locerror to skip.
Can someone suggest on how i can work around this issue.
Beta Was this translation helpful? Give feedback.
All reactions