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
Labels
GoCommand modules NeedsInvestigation
Milestone

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

@bcmills bcmills added NeedsInvestigation GoCommand modules labels May 19, 2021
@bcmills bcmills added this to the Backlog milestone May 19, 2021
@bcmills bcmills self-assigned this May 19, 2021
@rsc rsc unassigned bcmills Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GoCommand modules NeedsInvestigation
Projects
None yet
Development

No branches or pull requests

1 participant