Add support for SHA-256 Git commit IDs #5395
Annotations
3 errors
Generate annotations:
source/git/source_test.go#L177
=== RUN TestFetchBySHA256
=== PAUSE TestFetchBySHA256
=== CONT TestFetchBySHA256
source_test.go:177: git version 2.45.2
source_test.go:991: (stdout) Initialized empty Git repository in /tmp/TestFetchBySHA2563737059983/001/snapshots/snapshots/1/
Cloning into '/tmp/TestRepeatedFetchKeepGitDir1396773609/002/main/sub'...
Reset branch 'master'
source_test.go:991: (stderr) fatal: Not a valid object name 271ec4a2bf869494dc1333272551cb96dbb7e972f0f843015ce0f7535d397f4e^{commit}
Cloning into '/tmp/TestFetchUnadvertisedRefSha1705807090/002/main/sub'...
warning: unable to rmdir 'sub': Directory not empty
Switched to branch 'master'
Switched to a new branch 'feature'
source_test.go:991: (stderr) fatal: couldn't find remote ref 271ec4a2bf869494dc1333272551cb96dbb7e972f0f843015ce0f7535d397f4e
Cloning into '/tmp/TestFetchBySHA13321745580/002/main/sub'...
source_test.go:217:
Error Trace: /src/source/git/source_test.go:217
/src/source/git/source_test.go:160
Error: Received unexpected error:
exit status 128
git stderr:
fatal: couldn't find remote ref 271ec4a2bf869494dc1333272551cb96dbb7e972f0f843015ce0f7535d397f4e
github.com/moby/buildkit/util/gitutil.(*GitCLI).Run
/src/util/gitutil/git_cli.go:230
github.com/moby/buildkit/source/git.(*gitSourceHandler).Snapshot
/src/source/git/source.go:493
github.com/moby/buildkit/source/git.testFetchBySHA
/src/source/git/source_test.go:216
github.com/moby/buildkit/source/git.TestFetchBySHA256
/src/source/git/source_test.go:160
testing.tRunner
/usr/local/go/src/testing/testing.go:1690
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1700
failed to fetch remote http://127.0.0.1:39347/main
github.com/moby/buildkit/source/git.(*gitSourceHandler).Snapshot
/src/source/git/source.go:494
github.com/moby/buildkit/source/git.testFetchBySHA
/src/source/git/source_test.go:216
github.com/moby/buildkit/source/git.TestFetchBySHA256
/src/source/git/source_test.go:160
testing.tRunner
/usr/local/go/src/testing/testing.go:1690
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1700
Test: TestFetchBySHA256
--- FAIL: TestFetchBySHA256 (0.69s)
|
Generate annotations:
source/git/source_test.go#L177
=== RUN TestFetchBySHA256KeepGitDir
=== PAUSE TestFetchBySHA256KeepGitDir
=== CONT TestFetchBySHA256KeepGitDir
Switched to a new branch 'feature'
source_test.go:177: git version 2.45.2
Cloning into '/tmp/TestFetchByBranchKeepGitDir4290459395/002/main/sub'...
Reset branch 'master'
Cloning into '/tmp/TestFetchByBranch267839569/002/main/sub'...
Switched to a new branch 'feature'
source_test.go:991: (stdout) Initialized empty Git repository in /tmp/TestFetchBySHA256KeepGitDir2602631300/001/snapshots/snapshots/1/
source_test.go:991: (stderr) fatal: Not a valid object name e9ea1241119ff0144901df2b2ea4a17910973b343ee3e628e88aa9054a907b99^{commit}
source_test.go:991: (stderr) fatal: couldn't find remote ref e9ea1241119ff0144901df2b2ea4a17910973b343ee3e628e88aa9054a907b99
source_test.go:217:
Error Trace: /src/source/git/source_test.go:217
/src/source/git/source_test.go:163
Error: Received unexpected error:
exit status 128
git stderr:
fatal: couldn't find remote ref e9ea1241119ff0144901df2b2ea4a17910973b343ee3e628e88aa9054a907b99
github.com/moby/buildkit/util/gitutil.(*GitCLI).Run
/src/util/gitutil/git_cli.go:230
github.com/moby/buildkit/source/git.(*gitSourceHandler).Snapshot
/src/source/git/source.go:493
github.com/moby/buildkit/source/git.testFetchBySHA
/src/source/git/source_test.go:216
github.com/moby/buildkit/source/git.TestFetchBySHA256KeepGitDir
/src/source/git/source_test.go:163
testing.tRunner
/usr/local/go/src/testing/testing.go:1690
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1700
failed to fetch remote http://127.0.0.1:40095/main
github.com/moby/buildkit/source/git.(*gitSourceHandler).Snapshot
/src/source/git/source.go:494
github.com/moby/buildkit/source/git.testFetchBySHA
/src/source/git/source_test.go:216
github.com/moby/buildkit/source/git.TestFetchBySHA256KeepGitDir
/src/source/git/source_test.go:163
testing.tRunner
/usr/local/go/src/testing/testing.go:1690
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1700
Test: TestFetchBySHA256KeepGitDir
--- FAIL: TestFetchBySHA256KeepGitDir (0.67s)
|
Test
Process completed with exit code 1.
|
Loading