diff --git a/cache/cache_test.go b/cache/cache_test.go index 9f541e5..7846272 100644 --- a/cache/cache_test.go +++ b/cache/cache_test.go @@ -1,7 +1,6 @@ package cache import ( - "io/ioutil" "os" "path/filepath" "testing" @@ -10,7 +9,7 @@ import ( ) func TestDownloadRootFS(t *testing.T) { - tmp, err := ioutil.TempDir("", "out-of-tree_") + tmp, err := os.MkdirTemp("", "out-of-tree_") if err != nil { return } diff --git a/cmd/pack.go b/cmd/pack.go index 66264de..e676521 100644 --- a/cmd/pack.go +++ b/cmd/pack.go @@ -6,7 +6,7 @@ package cmd import ( "fmt" - "io/ioutil" + "os" "time" "code.dumpstack.io/tools/out-of-tree/fs" @@ -35,7 +35,7 @@ func (cmd *PackCmd) Run(g *Globals) (err error) { tag := fmt.Sprintf("pack_run_%d", time.Now().Unix()) log.Print("Tag:", tag) - files, err := ioutil.ReadDir(g.WorkDir) + files, err := os.ReadDir(g.WorkDir) if err != nil { return }