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
warning: unable to rmdir 'sub': Directory not empty
Switched to branch 'master'
Reset branch 'master'
source_test.go:991: (stdout) Initialized empty Git repository in /tmp/TestFetchBySHA2561068290378/001/snapshots/snapshots/1/
source_test.go:991: (stderr) fatal: Not a valid object name 21cad67fdf1a0cbd71e41ce969f541a8480a4b42a67d0309f31a02e73c6ba20e^{commit}
source_test.go:991: (stderr) fatal: couldn't find remote ref 21cad67fdf1a0cbd71e41ce969f541a8480a4b42a67d0309f31a02e73c6ba20e
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 21cad67fdf1a0cbd71e41ce969f541a8480a4b42a67d0309f31a02e73c6ba20e
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:34997/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
source_test.go:177: git version 2.45.2
source_test.go:991: (stdout) Initialized empty Git repository in /tmp/TestFetchBySHA256KeepGitDir3694537529/001/snapshots/snapshots/1/
source_test.go:991: (stderr) fatal: Not a valid object name e4be1c0fedc5778f1634d255ee3b1a0349084b3755c6500e0d943d1ae947373a^{commit}
Switched to a new branch 'feature'
Reset branch 'master'
source_test.go:991: (stderr) fatal: couldn't find remote ref e4be1c0fedc5778f1634d255ee3b1a0349084b3755c6500e0d943d1ae947373a
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 e4be1c0fedc5778f1634d255ee3b1a0349084b3755c6500e0d943d1ae947373a
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:43919/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
Switched to a new branch 'feature'
--- FAIL: TestFetchBySHA256KeepGitDir (0.70s)
|
Test
Process completed with exit code 1.
|
Loading