diff --git a/pkg/lib/tmp/copy.go b/pkg/lib/tmp/copy.go
index 52a247f41..c61e04c6a 100644
--- a/pkg/lib/tmp/copy.go
+++ b/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/test/e2e/opm_test.go b/test/e2e/opm_test.go
index e7a8bf139..e2b219ca0 100644
--- a/test/e2e/opm_test.go
+++ b/test/e2e/opm_test.go
@@ -47,7 +47,7 @@ var (
 )
 
 func inTemporaryBuildContext(f func() error) (rerr error) {
-	td, err := ioutil.TempDir("", "opm-")
+	td, err := ioutil.TempDir(".", "opm-")
 	if err != nil {
 		return err
 	}