feat: replace ioutil with io and os (#1816)

This commit is contained in:
Nicholas Wiersma
2023-01-27 17:12:47 +02:00
committed by GitHub
parent 6baf7c9033
commit ab64133949
23 changed files with 76 additions and 81 deletions
+3 -3
View File
@@ -1,3 +1,4 @@
//go:build e2etests
// +build e2etests
package e2etests
@@ -6,7 +7,6 @@ import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"os"
"os/exec"
@@ -35,12 +35,12 @@ type catalogRes struct {
func (m *E2eSuite) SetupSuite() {
var err error
m.goPath, err = ioutil.TempDir("/tmp", "gopath")
m.goPath, err = os.MkdirTemp("/tmp", "gopath")
if err != nil {
m.Fail("Failed to make temp dir", err)
}
m.sampleRepoPath, err = ioutil.TempDir("/tmp", "repopath")
m.sampleRepoPath, err = os.MkdirTemp("/tmp", "repopath")
if err != nil {
m.Fail("Failed to make temp dir for sample repo", err)
}