Skip to content

Commit d6e2de9

Browse files
workaround the unpacking hang issue (#245)
1 parent c0a331e commit d6e2de9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

builder/context.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@ func (b *Builder) scrapeDependencies(ctx context.Context, volName string, stepWo
102102
scannerImageName,
103103
"scan",
104104
"-f", dockerfile,
105-
"--destination", outputDir,
105+
// NOTE (bindu): unpacking a tar file including .git folder can hang if --destination is a relative path
106+
// Use the absolute path to workaround the issue.
107+
"--destination", path.Join(normalizeWorkDir(stepWorkDir), outputDir),
106108
context,
107109
}
108110

0 commit comments

Comments
 (0)