bake: handle derived attributes #4708
Annotations
3 errors
Generate annotations:
tests/run.go#L272
=== RUN TestIntegration
run.go:272: copied docker.io/moby/buildkit:latest to local mirror localhost:41929/moby/buildkit:buildx-stable-1
time="2024-11-28T10:52:49Z" level=info msg="trying next host - response was http.StatusNotFound" host="localhost:41929"
run.go:272: copied docker.io/amd64/busybox:latest@sha256:023917ec6a886d0e8e15f28fb543515a5fcd8d938edb091e8147db4efed388ee to local mirror localhost:41929/library/busybox:latest
time="2024-11-28T10:52:49Z" level=info msg="trying next host - response was http.StatusNotFound" host="localhost:41929"
run.go:272: copied docker.io/amd64/alpine:latest@sha256:25fad2a32ad1f6f510e528448ae1ec69a28ef81916a004d3629874104f8a7f70 to local mirror localhost:41929/library/alpine:latest
--- FAIL: TestIntegration (1.02s)
|
Generate annotations:
tests/bake.go#L123
=== RUN TestIntegration/TestBakePrint/worker=docker-container
=== PAUSE TestIntegration/TestBakePrint/worker=docker-container
=== CONT TestIntegration/TestBakePrint/worker=docker-container
bake.go:123:
Error Trace: /src/tests/bake.go:123
/src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:97
/src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:211
Error: Not equal:
expected: []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc000391680), (*buildflags.CacheOptionsEntry)(0xc0003916a0), (*buildflags.CacheOptionsEntry)(0xc0003916c0)}
actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0003914e0), (*buildflags.CacheOptionsEntry)(0xc000391500), (*buildflags.CacheOptionsEntry)(0xc000391560)}
Diff:
--- Expected
+++ Actual
@@ -17,4 +17,6 @@
(*buildflags.CacheOptionsEntry)({
- Type: (string) (len=15) "user/repo:cache",
- Attrs: (map[string]string) <nil>,
+ Type: (string) (len=8) "registry",
+ Attrs: (map[string]string) (len=1) {
+ (string) (len=3) "ref": (string) (len=15) "user/repo:cache"
+ },
ImplicitAttrs: (map[string]string) <nil>
Test: TestIntegration/TestBakePrint/worker=docker-container
--- FAIL: TestIntegration/TestBakePrint/worker=docker-container (1.11s)
|
Test
Process completed with exit code 1.
|
Loading