-
Notifications
You must be signed in to change notification settings - Fork 17.6k
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: go doc rsc.io/quote/v3 in module mode shows wrong import path #30778
Comments
It looks the specified import path doesn't work when modules feature is enabled. |
/cc @robpike |
I'll be able to look into this issue. |
Actually, I can't reproduce this with Go 1.12.1 nor Go tip (at commit fd270d8):
@rsc What version of Go did you use? Where were the commands you ran before to initialize the main module? |
There's a chance this is the same issue as #28992 (comment). |
Timed out in state WaitingForInfo. Closing. (I am just a bot, though. Please speak up if this is a mistake or you have the requested information.) |
@rsc is this still an issue? Do you have updated repro steps? Thanks. |
I ran this on go version go1.12.6 linux/amd64 in a local module aftering |
@mseshachalam Did you have a copy of Can you check if commit 3b040b7 fixes it? |
@dmitshur I have a copy of `rsc.io/quote' at $GOPATH/src/rsc.io/quote pointing master branch at rsc/quote@5d9f230
I tested this with go 1.12.7 and observed the same behavior. Does this version of go include |
Go 1.12.7 does not include it, it's currently only available on the latest |
Yeah.
Could you please explain briefly about the changes in gotip and go 1.12.7 ? |
Thanks for confirming @mseshachalam. The change was CL 183991, you can read its commit message for details. It fixed issue #28992, which was that in some conditions,
Yes, it's now using the |
In module mode, in a module with rsc.io/quote/v3 as a dependency:
Note the import comment on the first line of output.
It should say
rsc.io/quote/v3
.I do not know why it says
rsc.io/quote
instead.The text was updated successfully, but these errors were encountered: