-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
golangci-lint "DecodeRune not declared by package utf8" with golang 1.13 #658
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
FYI same issue here, but affecting multiple functions
|
If you rebuild with golang 1.13 it seem to work after that. |
/cc @jirfag |
Exactly the same issue for me |
Temp workaround for me: .golangci.yml
|
Thanks, to explain what seems to be going on here:
If you're using a pre-built binary of As @stevenh said, rebuilding If you're installing
Use this instead:
|
So I guess what we need is just another release on GoReleaser built with Go 1.13. Using |
But just building golangci-lint with Go 1.13 doesn't seem to fix the underlying issue. It's not like |
As suggested in golangci/golangci-lint#658
As suggested in golangci/golangci-lint#658
I believe it is because Go 1.13 added binary integer literals and they are being used in the standard library but Go 1.12 doesn't recognize them thus can't really build the module and as such Does it make sense? |
As suggested in golangci/golangci-lint#658
|
I would expect this to pull the latest tagged version for major version 1 and instead it pulled master for me; have CI now failing on funLen linter which was just merged to master. |
And to make matters worse I can't install the specific version via go modules because from go-1.13 point of view the mod file is corrupted (fix is already in master). Vicious circle :D |
Hi! sorry for the slow response. |
This resolves issue golangci/golangci-lint#658 when compiling with go1.13.
My issue is resolved with 1.18.0 release. Please update your golangci-lint: $ curl -sfL "https://install.goreleaser.com/github.com/golangci/golangci-lint.sh" | sh -s -- -b $(go env GOPATH)/bin v1.18.0 Thank you @jirfag ! |
This issue was not resolved for me by the 1.18.0 release. |
See golangci/golangci-lint#658 for details Summary - golangci-lint, built with Go 1.12, will generate this error when linting Go 1.13 code
Fixes: golangci/golangci-lint#658 Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
- Test against supported Go versions (Go 1.13 and 1.14), which also means we don't need GO111MODULE anymore - Remove old options like 'sudo: false' - Bump golangci-lint to 1.18.0, so it works with Go 1.13+ (see golangci/golangci-lint#658 for details)
- Test against supported Go versions (Go 1.13 and 1.14), which also means we don't need GO111MODULE anymore - Remove old options like 'sudo: false' - Bump golangci-lint to 1.18.0, so it works with Go 1.13+ (see golangci/golangci-lint#658 for details)
This requires upgrading to golangci-lint 1.18 to fix golangci/golangci-lint#658 with Go 1.13. Signed-off-by: Stephen Kitt <skitt@redhat.com>
This requires upgrading to golangci-lint 1.18 to fix golangci/golangci-lint#658 with Go 1.13. Signed-off-by: Stephen Kitt <skitt@redhat.com>
This requires upgrading to golangci-lint 1.18 to fix golangci/golangci-lint#658 with Go 1.13. Signed-off-by: Stephen Kitt <skitt@redhat.com>
This requires upgrading to golangci-lint 1.18 to fix golangci/golangci-lint#658 with Go 1.13. Signed-off-by: Stephen Kitt <skitt@redhat.com>
This requires upgrading to golangci-lint 1.18 to fix golangci/golangci-lint#658 with Go 1.13. Signed-off-by: Stephen Kitt <skitt@redhat.com>
This requires upgrading to golangci-lint 1.18 to fix golangci/golangci-lint#658 with Go 1.13. Signed-off-by: Stephen Kitt <skitt@redhat.com>
- Remove linter skip-dirs config, there is no reason to skip linting the echo integration and example. - Add whitespace linter. It checks for unnecessary newlines at the start and end of functions, if, for, etc. - Remove unnecessary linter exclude rule (was a golangci-lint bug, golangci/golangci-lint#658)
Fixes: golangci/golangci-lint#658 Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This requires upgrading to golangci-lint 1.18 to fix golangci/golangci-lint#658 with Go 1.13. Signed-off-by: Stephen Kitt <skitt@redhat.com>
This resolves issue golangci/golangci-lint#658 when compiling with go1.13.
Please include the following information:
golangci-lint --version
(or git commit if you don't use binary distribution)Config file:
cat .golangci.yml
- noneGo environment:
go version && go env
golangci-lint run -v
The text was updated successfully, but these errors were encountered: