-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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: "no required module provides package" error with file path to replacement module inside another replacement #43806
Comments
This is because What should happen in the analogous situation where the module is located at What if the path includes a |
Listing a package in
The wildcard causes a different error, whether or not the module is in a nested replacement. This might be WAI though.
|
The context for this is this golang-nuts thread by the way. |
This is in the Go1.18 milestone. Is it likely to happen for 1.18? Thanks. |
@bcmills This is in the 1.18 milestone; time to move to 1.19? Thanks. |
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 three local modules: M (main module, requiring and replacing the other two), A (module in a directory outside M), and B (module in a subdirectory of A).
Attempt to list a package in B using a relative or absolute file path.
What did you expect to see?
Package name is printed successfully:
example.com/a/b
What did you see instead?
The text was updated successfully, but these errors were encountered: