Skip to content
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

cmd/go: module declares its path as: golang.org/x/lint but was required as: github.com/golang/lint Makefile:12: recipe for target 'build' failed #35723

Open
ying2025 opened this issue Nov 21, 2019 · 1 comment

Comments

@ying2025
Copy link

@ying2025 ying2025 commented Nov 21, 2019

go: github.com/golang/lint@v0.0.0-20190313153728-d0100b6bd8b3: parsing go.mod:
module declares its path as: golang.org/x/lint
but was required as: github.com/golang/lint
Makefile:12: recipe for target 'build' failed
make: *** [build] Error 1
zhr@ubuntu:~/gospace/src/gith

My go version is go1.13.4 linux/amd64 @bcmills

@toothrot

This comment has been minimized.

Copy link
Contributor

@toothrot toothrot commented Nov 22, 2019

@ying2025 The lint package should be imported as it's canonical path golang.org/x/lint. Is your code importing github.com/golang/lint somewhere?

@toothrot toothrot added this to the Backlog milestone Nov 22, 2019
@toothrot toothrot changed the title module declares its path as: golang.org/x/lint but was required as: github.com/golang/lint Makefile:12: recipe for target 'build' failed cmd/go: module declares its path as: golang.org/x/lint but was required as: github.com/golang/lint Makefile:12: recipe for target 'build' failed Nov 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.