Skip to content

Commit 8159f79

Browse files
authored
fix: tmpdir (#18)
1 parent b0728a7 commit 8159f79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/commands/utils/build_utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func processTemplate(templatePath string, data any) ([]byte, error) {
6868
}
6969

7070
func setupLayeredBuildDirectory(environmentConfig common.EnvironmentConfig, layeredDockerfileContent []byte, scriptContent []byte, includeTLS bool) (string, error) {
71-
tempDir, err := os.MkdirTemp("", LayeredBuildDirPrefix)
71+
tempDir, err := os.MkdirTemp(os.TempDir(), LayeredBuildDirPrefix)
7272
if err != nil {
7373
return "", fmt.Errorf("failed to create temp dir: %w", err)
7474
}

0 commit comments

Comments
 (0)