You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ifref==""||ref>k { // Break ties deterministically when multiple refs point at same hash.
ref=k
}
rev=h
hash=h
}
}
ifhash==""&&len(rev) ==40 { // Didn't find a ref, but rev is a full hash.
hash=rev
}
} else {
returnnil, &UnknownRevisionError{Rev: rev}
}
If I'm reading it correctly, r.refsErr needs to be checked after line 298. I think instead it's falling through to the else clause at line 335 which is reporting the unknown revision.
I haven't yet attempted a fix, but I am open to doing so.
The text was updated successfully, but these errors were encountered:
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
go mod vendor
.go.mod
to use the new version tag.What did you expect to see?
An error explaining that the GitHub token does not work.
What did you see instead?
After glancing through the source, I suspect the issue is around line 298 in the below snippet
go/src/cmd/go/internal/modfetch/codehost/git.go
Lines 298 to 336 in f1980ef
r.refsErr
needs to be checked after line 298. I think instead it's falling through to the else clause at line 335 which is reporting the unknown revision.I haven't yet attempted a fix, but I am open to doing so.
The text was updated successfully, but these errors were encountered: