-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: spurious "v1.x.y is not a tag" error when a tag's commit was previously download without the tag #53955
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
Comments
I have posted this issue before as #51374 but was told it was duplicate to #51312. |
Thanks for the detailed repro steps — I had not seen the prior issue you filed. I agree that this looks like a different root cause. |
This is plausibly related to #56881. |
Also hitting this issue with Go I cannot reproduce this issue locally, so my suspicion is that that this issue might be related to the containerized environment. |
I have a test script that reproduces this behavior locally; I hope to have a fix ready for Go 1.22 or shortly thereafter. |
Change https://go.dev/cl/547155 mentions this issue: |
@gopherbot, please backport to Go 1.21 and 1.20. This fixes a bug that is otherwise difficult for users to understand and diagnose, and the fix is relatively uninvasive. |
Backport issue(s) opened: #64585 (for 1.20), #64586 (for 1.21). Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://go.dev/wiki/MinorReleases. |
Change https://go.dev/cl/548215 mentions this issue: |
Also confirm that setting the location actually worked before proceeding with the rest of the test. This fixes a test failure with git versions older than 2.32.0. Updates #53955. Fixes #64603. Change-Id: I1a954975a3d8300e8b4dca045d3a15438a0407ec Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-longtest,gotip-windows-amd64-longtest Reviewed-on: https://go-review.googlesource.com/c/go/+/548215 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Russ Cox <[email protected]> Reviewed-by: Michael Matloob <[email protected]> Run-TryBot: Bryan Mills <[email protected]>
If we backport this fix, it needs to include both CL 547155 and CL 548215 to avoid breaking the builders. |
…instead of after gitRepo.statLocal reports tag and version information. If we are statting a hash that corresponds to a tag, we need to add that tag before calling statLocal so that it can be included in that information. Fixes golang#53955. Updates golang#56881. Change-Id: I69a71428e6ed9096d4cb8ed1bb79531415ff06c1 Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-longtest,gotip-windows-amd64-longtest Reviewed-on: https://go-review.googlesource.com/c/go/+/547155 Auto-Submit: Bryan Mills <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Michael Matloob <[email protected]>
Also confirm that setting the location actually worked before proceeding with the rest of the test. This fixes a test failure with git versions older than 2.32.0. Updates golang#53955. Fixes golang#64603. Change-Id: I1a954975a3d8300e8b4dca045d3a15438a0407ec Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-longtest,gotip-windows-amd64-longtest Reviewed-on: https://go-review.googlesource.com/c/go/+/548215 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Russ Cox <[email protected]> Reviewed-by: Michael Matloob <[email protected]> Run-TryBot: Bryan Mills <[email protected]>
Change https://go.dev/cl/585815 mentions this issue: |
Change https://go.dev/cl/585816 mentions this issue: |
…t tags before statLocal instead of after gitRepo.statLocal reports tag and version information. If we are statting a hash that corresponds to a tag, we need to add that tag before calling statLocal so that it can be included in that information. For #53955. For #56881. For #64586 Change-Id: I69a71428e6ed9096d4cb8ed1bb79531415ff06c1 Reviewed-on: https://go-review.googlesource.com/c/go/+/547155 Auto-Submit: Bryan Mills <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Michael Matloob <[email protected]> (cherry picked from commit 7b5a373) Reviewed-on: https://go-review.googlesource.com/c/go/+/585815 Reviewed-by: Sam Thanawalla <[email protected]> Auto-Submit: Dmitri Shuralyov <[email protected]>
…obustly in tests Also confirm that setting the location actually worked before proceeding with the rest of the test. This fixes a test failure with git versions older than 2.32.0. For #53955. For #64603. Fixes #64586 Change-Id: I1a954975a3d8300e8b4dca045d3a15438a0407ec Reviewed-on: https://go-review.googlesource.com/c/go/+/548215 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Russ Cox <[email protected]> Reviewed-by: Michael Matloob <[email protected]> Run-TryBot: Bryan Mills <[email protected]> Reviewed-on: https://go-review.googlesource.com/c/go/+/585816 Reviewed-by: Sam Thanawalla <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Auto-Submit: Dmitri Shuralyov <[email protected]> TryBot-Bypass: Dmitri Shuralyov <[email protected]>
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes. I was able to reproduce from Docker image
golang:1.18.4
.What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
On my host machine
ef2f664
, with tagv1.0.9
pointing to some earlier commit.)Inside Docker
foobar
module with its latest commit hashef2f664
.On my host machine
ef2f664
withv1.0.10
and push it to GitHub.Inside Docker
foobar
module with the tagv1.0.10
, and watch it fail.What did you expect to see?
No failure at step 7.
What did you see instead?
The tag did exist while
go
said otherwise.The text was updated successfully, but these errors were encountered: