Skip to content

golangci-lint version 1.42.0 says typecheck error on Ubuntu 21.04 & Go 1.17 env #2215

Closed Answered by choleraehyq
xxpxxxxp asked this question in Q&A
Discussion options

You must be logged in to vote

I also meet this problem. Under Go 1.17, go build success, but golangci-lint installed by curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.42.0 says typecheck error. Then I build and install golangci-lint locally under Go1.17 using go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.42.0, it doesn't say typecheck error again.

Replies: 7 comments 11 replies

Comment options

You must be logged in to vote
1 reply
@xxpxxxxp
Comment options

Comment options

You must be logged in to vote
3 replies
@choleraehyq
Comment options

@xxpxxxxp
Comment options

@cniackz
Comment options

Answer selected by xxpxxxxp
Comment options

You must be logged in to vote
4 replies
@ldez
Comment options

@xxpxxxxp
Comment options

@choleraehyq
Comment options

@ldez
Comment options

Comment options

You must be logged in to vote
1 reply
@ldez
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@lonnblad
Comment options

@shellhazard
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
8 participants
Converted from issue

This discussion was converted from issue #2212 on September 02, 2021 20:31.