cmd/go/internal/vcweb/vcstest: TestScripts/git/issue47650.txt failing on systems with older git versions #64670
Labels
FrozenDueToAge
GoCommand
cmd/go
NeedsFix
The path to resolution is known, but the work has not been done.
release-blocker
Testing
An issue that has been verified to require only test changes, not just a test failure.
Milestone
Go version
Latest version on master b18b058
What operating system and processor architecture are you using (
go env
)?What did you do?
Just ran the
all.sh
script to build.What did you expect to see?
Successful build
What did you see instead?
--- FAIL: TestScripts (0.40s)
--- FAIL: TestScripts/git/issue47650.txt (0.89s)
vcstest_test.go:155: 2023/12/12 02:12:46 issue47650.txt:
> handle git
> env GIT_AUTHOR_NAME='Bryan C. Mills'
> env GIT_AUTHOR_EMAIL='bcmills@google.com'
> env GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
> env GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL
> git init
[stdout]
Initialized empty Git repository in /tmp/TestScripts1179865923/001/git/issue47650/.git/
> at 2021-08-11T13:52:00-04:00
> git add cmd
> git commit -m 'add cmd/issue47650'
[stdout]
[master (root-commit) 4d237df] add cmd/issue47650
1 file changed, 7 insertions(+)
create mode 100644 cmd/issue47650/main.go
> git tag v0.1.0
> git add go.mod
> git commit -m 'add go.mod'
[stdout]
[master 21535ef] add go.mod
1 file changed, 3 insertions(+)
create mode 100644 go.mod
> git show-ref --tags --heads
[stdout]
21535ef346c3e79fd09edd75bd4725f06c828e43 refs/heads/master
4d237df2dbfc8a443af2f5e84be774f08a2aed0c refs/tags/v0.1.0
> cmp stdout .git-refs
diff stdout .git-refs
--- stdout
+++ .git-refs
@@ -1,2 +1,2 @@
-21535ef346c3e79fd09edd75bd4725f06c828e43 refs/heads/master
+21535ef346c3e79fd09edd75bd4725f06c828e43 refs/heads/main
4d237df2dbfc8a443af2f5e84be774f08a2aed0c refs/tags/v0.1.0
FAIL
FAIL cmd/go/internal/vcweb/vcstest 7.643s
It seems like it's caused by this commit .
The text was updated successfully, but these errors were encountered: