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: list module directory should show correct import path #26550

Closed
rsc opened this issue Jul 23, 2018 · 1 comment
Closed

cmd/go: list module directory should show correct import path #26550

rsc opened this issue Jul 23, 2018 · 1 comment
Labels
FrozenDueToAge modules NeedsFix The path to resolution is known, but the work has not been done. release-blocker
Milestone

Comments

@rsc
Copy link
Contributor

rsc commented Jul 23, 2018

In general, go list -f {{.ImportPath}} $(go list -f {{.Dir}} x/y/z) should print x/y/z (or fail because x/y/z is not known).

Directories in the module cache are not properly mapped back to the shorter import paths.
(Of course that should only happen when that exact module version is in the build list.)

@rsc rsc added this to the Go1.11 milestone Jul 23, 2018
@bcmills bcmills added NeedsFix The path to resolution is known, but the work has not been done. modules labels Jul 23, 2018
@gopherbot
Copy link

Change https://golang.org/cl/126715 mentions this issue: cmd/go: allow list of absolute directory path

@golang golang locked and limited conversation to collaborators Aug 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge modules NeedsFix The path to resolution is known, but the work has not been done. release-blocker
Projects
None yet
Development

No branches or pull requests

3 participants