-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
replace directive in parent causes, error loading module requirements #29376
Comments
commentary: The module unfortunately, the error message doesn't point out that it is as a result of an ignored replace directive in the parent module( |
Another reproduction; package main
import (
"log"
"github.com/komuw/meli"
)
func main() {
auth := meli.AuthInfo
log.Println(auth)
}
# github.com/komuw/meli
../../go/pkg/mod/github.com/komuw/[email protected]/types.go:77:44: undefined: volume.VolumeCreateBody
../../go/pkg/mod/github.com/komuw/[email protected]/types.go:120:70: undefined: volume.VolumeCreateBody
../../go/pkg/mod/github.com/komuw/[email protected]/volume.go:16:3: undefined: volume.VolumeCreateBody thee parent module |
@gopherbot, please add label modules |
The error message here describes exactly the problem: We should not point out that it is the result of an ignored Arguably |
The situation in If that commit really is newer than
|
The problems in these cases are semantic defects in the declared requirements, not directly due to |
I think the thing that will fix the semantic defects is #29182, or perhaps #26420 (comment). Closing as a duplicate of those. |
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?
create this
main.go
file;and ran;
go1.12beta1 run main.go
What did you expect to see?
success or a helpful error message
What did you see instead?
The text was updated successfully, but these errors were encountered: