-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
x/vgo: vgo unable to find go.mod file of package in tagged GitHub repo #25494
Comments
I'll add to this. When I tried a "vgo get -u" with that goose repo, I saw this panic:
When I tried again from scratch, I couldn't reproduce this, but perhaps the panic is enough in itself. |
There is an issue resolving the module path from the go.mod file in CL coming up. |
Change https://golang.org/cl/114005 mentions this issue: |
@rogpeppe I was unable to reproduce your panic either :/ @vladimiroff The attached CL fixes the issue you experienced. Feel free to confirm. |
Change https://golang.org/cl/114058 also fixes this issue. I just saw it when I pushed to Gerrit and saw the merge conflicts. I think parts of both CLs could be useful to get in. |
@kardianos A reliable way to get the panic is to have a empty (other than the module declaration) go.mod file and |
Huh. It doesn't do that anymore with the linked CL. |
ohh nvm then, didn't tried the CL |
This seems to be fixed at head. (Following your steps to reproduce, Please reopen if you're still able to reproduce the problem. |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, even with just updated
vgo
(go get -u golang.org/x/vgo
)What operating system and processor architecture are you using (
go env
)?What did you do?
github.com/pressly/goose
in order to addgo.mod
file (there's a v2 version already)master
, createdgo.mod
file with/v2
suffix of the module name and tagged the release asv2.3.2
foo.go
just to import forked version ofgoose
:go.mod
file as well:What did you expect to see?
vgo build
to succeed.What did you see instead?
There's obviously a
go.mod
file in there: https://github.com/vladimiroff/goose/blob/v2.3.2/go.modvgo build
succeeds only after replacinggit.luolix.top/vladimiroff/goose/v2
with local version of the package ingo.mod
:The text was updated successfully, but these errors were encountered: