Skip to content

go get fails #538

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

Closed
tamalsaha opened this issue May 15, 2019 · 5 comments
Closed

go get fails #538

tamalsaha opened this issue May 15, 2019 · 5 comments

Comments

@tamalsaha
Copy link

I tried to run go get github.com/golangci/golangci-lint/cmd/[email protected] and got the following error:

go: extracting golang.org/x/text v0.3.2
# github.com/golangci/golangci-lint/pkg/lint
../../../pkg/mod/github.com/golangci/[email protected]/pkg/lint/load.go:171:2: duplicate case "golang.org/x/tools/go/packages".LoadAllSyntax (value 991) in switch
	previous case at /home/tamal/go/pkg/mod/golang.org/x/[email protected]/go/packages/packages.go:98

I see that this was fixed in master

// it may be an alias, and may be not

Can you please release a new version?

@jc21
Copy link

jc21 commented May 20, 2019

I'm getting this with 1.15 too..

/go/pkg/mod/github.com/golangci/[email protected]/pkg/lint/load.go:171:2: duplicate case "golang.org/x/tools/go/packages".LoadAllSyntax (value 991) in switch
        previous case at /go/pkg/mod/golang.org/x/[email protected]/go/packages/packages.go:98

@ian-howell
Copy link
Contributor

Any update on this? It's quite the blocker

ian-howell added a commit to ian-howell/airshipctl that referenced this issue May 21, 2019
ian-howell added a commit to ian-howell/airshipctl that referenced this issue May 21, 2019
bflad added a commit to hashicorp/terraform-provider-aws that referenced this issue May 30, 2019
…dfdfc577ecb08d5027576e70ed2f0

Contains fix for newer golang.org/x/tools. Reference: golangci/golangci-lint#538
bflad added a commit to hashicorp/terraform-provider-aws that referenced this issue Jun 4, 2019
@MichaelUrman
Copy link

I had some luck after explicitly running go get golang.org/x/tools@4892ae6 to use the golang.org/x/tools 1.12 release, but it also downgraded me to golangci-lint v1.15.0 (I don't understand why). I'll probably just use master or wait for a release.

@tamalsaha
Copy link
Author

I am using
go get github.com/golangci/golangci-lint/cmd/golangci-lint@692dacb773b703162c091c2d8c59f9cd2d6801db .

This works fine.

@jirfag
Copy link
Contributor

jirfag commented Jun 10, 2019

I've fixed it in the latest release. go get -v -u github.com/golangci/[email protected] works ok now.

@jirfag jirfag closed this as completed Jun 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants