diff --git a/pkg/compiler/artifact_test.go b/pkg/compiler/artifact_test.go index a8b871a5..8335b2c6 100644 --- a/pkg/compiler/artifact_test.go +++ b/pkg/compiler/artifact_test.go @@ -114,7 +114,10 @@ RUN echo bar > /test2`)) diffs, err := b.Changes(opts, opts2) Expect(err).ToNot(HaveOccurred()) - artifacts := []ArtifactNode{} + artifacts := []ArtifactNode{{ + Name: "/luetbuild/LuetDockerfile", + Size: 175, + }} if os.Getenv("DOCKER_BUILDKIT") == "1" { artifacts = append(artifacts, ArtifactNode{Name: "/etc/resolv.conf", Size: 0}) } diff --git a/pkg/compiler/backend/simpledocker_test.go b/pkg/compiler/backend/simpledocker_test.go index 8a49a835..d08c9333 100644 --- a/pkg/compiler/backend/simpledocker_test.go +++ b/pkg/compiler/backend/simpledocker_test.go @@ -103,7 +103,10 @@ RUN echo bar > /test2`)) Expect(b.ImageDefinitionToTar(opts2)).ToNot(HaveOccurred()) Expect(helpers.Exists(filepath.Join(tmpdir, "output2.tar"))).To(BeTrue()) - artifacts := []ArtifactNode{} + artifacts := []ArtifactNode{{ + Name: "/luetbuild/LuetDockerfile", + Size: 175, + }} if os.Getenv("DOCKER_BUILDKIT") == "1" { artifacts = append(artifacts, ArtifactNode{Name: "/etc/resolv.conf", Size: 0}) }