diff --git a/pkg/commands/deps.go b/pkg/commands/deps.go index 951e52c207..4926e89851 100644 --- a/pkg/commands/deps.go +++ b/pkg/commands/deps.go @@ -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 }