1
0

refactor: remove global temporary directory base

This commit is contained in:
2023-05-13 11:31:47 +00:00
parent 5ada1ef41a
commit 7cf1bbd194
4 changed files with 4 additions and 10 deletions

View File

@@ -7,7 +7,6 @@ package main
import (
"errors"
"fmt"
"io/ioutil"
"os"
"strings"
"time"
@@ -16,6 +15,7 @@ import (
"gopkg.in/logrusorgru/aurora.v2"
"code.dumpstack.io/tools/out-of-tree/config"
"code.dumpstack.io/tools/out-of-tree/fs"
"code.dumpstack.io/tools/out-of-tree/qemu"
)
@@ -144,7 +144,7 @@ func (cmd *DebugCmd) Run(g *Globals) (err error) {
}
defer q.Stop()
tmp, err := ioutil.TempDir(tempDirBase, "out-of-tree_")
tmp, err := fs.TempDir()
if err != nil {
return
}