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

bcmills opened this issue May 19, 2021 · 0 comments
GoCommand modules NeedsInvestigation


Copy link

@bcmills bcmills commented May 19, 2021

$ go mod tidy
go: finding module for package imports cannot find module providing package no modules on

-- go.mod --

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

import _ ""

This error message is suboptimal: it gives a package import stack ending with, but then includes the redundant substring package 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
GoCommand modules NeedsInvestigation
None yet

No branches or pull requests

1 participant