diff --git a/staging/operator-registry/pkg/lib/tmp/copy.go b/staging/operator-registry/pkg/lib/tmp/copy.go index c61e04c6a7..52a247f418 100644 --- a/staging/operator-registry/pkg/lib/tmp/copy.go +++ b/staging/operator-registry/pkg/lib/tmp/copy.go @@ -9,7 +9,7 @@ import ( // CopyTmpDB reads the file at the given path and copies it to a tmp directory, returning the copied file path or an err func CopyTmpDB(original string) (path string, err error) { - dst, err := ioutil.TempFile(".", "db-") + dst, err := ioutil.TempFile("", "db-") if err != nil { return "", err } diff --git a/vendor/github.com/operator-framework/operator-registry/pkg/lib/tmp/copy.go b/vendor/github.com/operator-framework/operator-registry/pkg/lib/tmp/copy.go index c61e04c6a7..52a247f418 100644 --- a/vendor/github.com/operator-framework/operator-registry/pkg/lib/tmp/copy.go +++ b/vendor/github.com/operator-framework/operator-registry/pkg/lib/tmp/copy.go @@ -9,7 +9,7 @@ import ( // CopyTmpDB reads the file at the given path and copies it to a tmp directory, returning the copied file path or an err func CopyTmpDB(original string) (path string, err error) { - dst, err := ioutil.TempFile(".", "db-") + dst, err := ioutil.TempFile("", "db-") if err != nil { return "", err }