Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: 'go get repo@<commit>' succeeds when <commit> is the full hash of an unpublished commit #30434
What version of Go are you using (
Yes, this makes sense, it became unreachable at some moment.
The interesting thing is - git can't find the commit after git clone and checkout:
So I can't imagine how go was able to find the reference in the repo :)
I can't name it a bug for sure, but I believe everyone will win if the behaviour becomes more stable. If go resolves the full commit and you think it's OK, then it must be able to resolve the partial ones.
But I believe it's much better to forbid resolving such commits. The best option is to return some descriptive error like