-
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
cmd/go: unknown revision converting vendor, but revision exists #27191
Comments
@mitchellh I wonder if that For example, in #27043 the problem was that the commit hash of interest referenced an unmerged pull request, which the go command now disallows (though it was previously more liberal). See for example the comment in #27043 (comment) or https://go-review.googlesource.com/c/go/+/129800. Perhaps you are encountering something in that neighborhood, or perhaps you are seeing something else entirely. |
I think @thepudds is right. The commit hash hashicorp/go-discover@1b9cec3 is not associated with a branch or tag. |
Yep, it's on an unmerged fork in This seems to be working as intended: we want individual maintainers to be in charge of which commits they publish. (Rejected pull requests and forks by other users should not be available for version resolution.) |
Hmm, and @banks even specifically questioned the vendoring changes that added that commit, in hashicorp/consul#4412 (comment). (I assume that @MagnumOpus21 pulled in the fork by accident.) That just goes to show the value of module paths and version tags, I suppose. 🙂 |
I don't know what I did to cause this. Every time I would open a PR on the hashicorp repo, I would push commits to my own repo and then open a PR to merge them. I just followed govendor's FAQ for modifying the vendor file. Hope this throws some light on this issue. |
No problem. Thanks for clarifying @bcmills we probably just got a weird commit into the vendor. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Latest go1.11 release - yes
Latest go1.10 - no because no modules
What operating system and processor architecture are you using (
go env
)?What did you do?
Checkout
542cace9a
from https://github.com/hashicorp/consulWhat did you expect to see?
Probably no error.
What did you see instead?
Reference to revision
1b9...
but if I go to the repo, that exists:hashicorp/go-discover@1b9cec3
The text was updated successfully, but these errors were encountered: