-
Notifications
You must be signed in to change notification settings - Fork 18k
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: could not import github.com/robteix/testmod/v2 (no package data for import path github.com/robteix/testmod/v2) #34204
Comments
Note that the In general, Go 1.13 should produce much clearer diagnostics in this sort of case. Please try this with a |
I hope the following error message with go1.13 is clear enough to help users find the issue @chingiz2387 $ go get github.com/robteix/testmod/v2 go get: github.com/robteix/testmod/v2@v2.0.0: parsing go.mod: module declares its path as: github.com/rselbach/testmod/v2 but was required as: github.com/robteix/testmod/v2 |
@bcmills Hello, сan you explain in more detail "Note that the go.mod file in the v2.0.0 release has a mismatched module path. (It declares its path to be github.com/rselbach/testmod/v2, but you are importing it as github.com/robteix/testmod/v2.)" in go.mod i see that it is installed by github.com/robteix/testmod/v2 v2.0.0 or i misunderstood you... |
As far as I can tell the |
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?
Hello everyone, when connecting the modules to the golang project, I install the module through the get-go and specify the path in the import test mode "github.com/robteix/testmod/v2"
What did you expect to see?
import (
testmode "github.com/robteix/testmod/v2"
)
to see a working import without errors
What did you see instead?
could not import github.com/robteix/testmod/v2 (no package data for import path github.com/robteix/testmod/v2)
The text was updated successfully, but these errors were encountered: