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: "cannot find module providing package" errors stutter on package name #46274

Open
bcmills opened this issue May 19, 2021 · 0 comments
Open

Comments

@bcmills
Copy link
Member

@bcmills bcmills commented May 19, 2021

$ go mod tidy
go: finding module for package example.net/m
example.com/pkg imports
        example.net/m: cannot find module providing package example.net/m: no modules on example.net

-- go.mod --
module example.com

go 1.17
-- pkg/example.go --
package example

import _ "example.net/m"

This error message is suboptimal: it gives a package import stack ending with example.net/m, but then includes the redundant substring package example.net/m in the error message.

CC @jayconrod @matloob

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant