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/doc: be context-sensitive when resolving package paths #23383

Closed
robpike opened this issue Jan 9, 2018 · 2 comments
Closed

cmd/doc: be context-sensitive when resolving package paths #23383

robpike opened this issue Jan 9, 2018 · 2 comments
Milestone

Comments

@robpike
Copy link
Contributor

robpike commented Jan 9, 2018

If I

$ cd $GOPATH/upspin.io
$ go doc ./errors

what comes out is the package docs for the Go standard error package, which is not the right answer. Instead, the ./ should mean to look in upspin.io/errors first.

It's even possible that if I say

$ cd $GOPATH/upspin.io/path
$ go doc errors

(no ./) it should prefer the local errors package from the upspin.io repo. Not sure about that.

But certainly ./ should mean something.

@robpike robpike self-assigned this Jan 9, 2018
@mvdan
Copy link
Member

mvdan commented Jan 9, 2018

@robpike should we milestone this for 1.11 if you're planning on working on it?

@robpike robpike added this to the Go1.11 milestone Jan 9, 2018
@gopherbot
Copy link

Change https://golang.org/cl/98396 mentions this issue: cmd/doc: make local dot-slash path names work

@golang golang locked and limited conversation to collaborators Mar 6, 2019
@rsc rsc unassigned robpike Jun 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants