From c7c32c04107577d6f057b6dae2f418f471d7582a Mon Sep 17 00:00:00 2001 From: tsujie Date: Fri, 4 Oct 2024 16:47:41 -0700 Subject: [PATCH] should check if the dataDir folder exits instead of checking dataTar file (#60) Signed-off-by: Jie Xu Co-authored-by: Jie Xu --- pkg/app/master/command/build/image.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/app/master/command/build/image.go b/pkg/app/master/command/build/image.go index 5b759f35..8df87ff9 100644 --- a/pkg/app/master/command/build/image.go +++ b/pkg/app/master/command/build/image.go @@ -430,7 +430,7 @@ func buildOutputImage( hasData = true } else { dataDir := filepath.Join(imageInspector.ArtifactLocation, "files") - if fsutil.Exists(dataTar) && fsutil.IsDir(dataDir) { + if fsutil.Exists(dataDir) && fsutil.IsDir(dataDir) { layerInfo := imagebuilder.LayerDataInfo{ Type: imagebuilder.DirSource, Source: dataDir,