Skip to content
This repository was archived by the owner on Mar 27, 2024. It is now read-only.

Commit 35d9770

Browse files
authored
Merge pull request #395 from alexeagle/0.17.x
Extract to tmpdir without characters that are illegal on Windows
2 parents 0f743be + 0f633dd commit 35d9770

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/util/image_utils.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ func getExtractPathForName(name string, cacheDir string) (string, error) {
195195
} else {
196196
// otherwise, create tempdir
197197
logrus.Infof("skipping caching")
198-
path, err = ioutil.TempDir("", strings.Replace(name, "/", "", -1))
198+
path, err = ioutil.TempDir("", "extracttar")
199199
if err != nil {
200200
return "", err
201201
}

0 commit comments

Comments
 (0)