refactor: remove ioutil
parent
48e5e8cd04
commit
820208d079
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue