[Proposal] x/mod: api to get the module path that will be loaded by go mod in code ? #32401
Labels
FrozenDueToAge
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?go env
OutputWhat do you want ?
in go.mod file
github.com/a/b
there are many dependencies, how do i get the path for this mod that will be loaded in a/b module ?
simply read go.mod is not enough, because there may be lines for
go mod edit --replace
or
go mod vendor
want to get the results like this in code
internal package can do this, but it can't be called
The text was updated successfully, but these errors were encountered: