We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8292cc commit 5d94cc4Copy full SHA for 5d94cc4
pkg/lib/tmp/copy.go
@@ -9,7 +9,7 @@ import (
9
10
// CopyTmpDB reads the file at the given path and copies it to a tmp directory, returning the copied file path or an err
11
func CopyTmpDB(original string) (path string, err error) {
12
- dst, err := ioutil.TempFile("", "db-")
+ dst, err := ioutil.TempFile(".", "db-")
13
if err != nil {
14
return "", err
15
}
test/e2e/opm_test.go
@@ -47,7 +47,7 @@ var (
47
)
48
49
func inTemporaryBuildContext(f func() error) (rerr error) {
50
- td, err := ioutil.TempDir("", "opm-")
+ td, err := ioutil.TempDir(".", "opm-")
51
52
return err
53
0 commit comments