-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: build failing due to cannot find module providing package golang.org/x/net/lex/httplex
#32280
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
cannot find module providing package golang.org/x/net/lex/httplex
cannot find module providing package golang.org/x/net/lex/httplex
The issue is that you have a transitive dependency on "golang.org/x/net/lex/httplex", which does not exists. As mentioned in the error message:
Looking at the go.mod file, this seems to be due to the dependency on github.com/yogeshpandey/gocookie-string-reader: https://github.com/yogeshpandey/gocookie-string-reader/blob/master/parser.go#L4 For additional questions, please see one of our forums: https://golang.org/wiki/Questions, as this is expected behavior for cmd/go. |
@julieqiu Thanks for pointing out! How did you figure this out? Did you run some command to find out which dependency uses Thanks again, |
I ran
|
Great! Thank you so much! |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I'm trying to port my
dep
based project togo modules
. I moved a few basic packages to the new repo and then I rango build -v
. Build is failing withWhat did you expect to see?
A successful build
What did you see instead?
go.mod file:
The text was updated successfully, but these errors were encountered: