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 cmd/go modules NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@bcmills
Copy link
Contributor

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 Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. GoCommand cmd/go 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 cmd/go modules NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

1 participant