Skip to content

Commit

Permalink
Clean filepath from zip before creating tempdir (#459)
Browse files Browse the repository at this point in the history
  • Loading branch information
imjasonh authored Oct 1, 2021
1 parent b9cd759 commit 5ac3ef9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/commands/deps.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ If the image was not built using ko, or if it was built without embedding depend
continue
}

tmp, err := ioutil.TempFile("", filepath.Base(h.Name))
tmp, err := ioutil.TempFile("", filepath.Base(filepath.Clean(h.Name)))
if err != nil {
return err
}
Expand Down

0 comments on commit 5ac3ef9

Please sign in to comment.