Skip to content

Commit 7723476

Browse files
authored
Create the tarballs directory before pushing (#2393)
1 parent c23146f commit 7723476

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/docker/fast_push.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ func FastPush(ctx context.Context, image string, projectDir string, command comm
8686
// Temp directory for tarballs extracted from the image
8787
// Separate from other temp directories so that they don't cause cache invalidation
8888
tmpTarballsDir := filepath.Join(projectDir, TarballsDir)
89+
err = os.MkdirAll(tmpTarballsDir, 0o755)
90+
if err != nil {
91+
return err
92+
}
8993
// Upload python packages.
9094
if requirementsFile != "" {
9195
pythonTar, err := createPythonPackagesTarFile(ctx, image, tmpTarballsDir, command)

0 commit comments

Comments
 (0)