updated linter and fixed deprecated stuff

This commit is contained in:
mslacken
2022-10-14 17:40:16 +02:00
parent b5d3de621b
commit ab0ee87629
21 changed files with 50 additions and 60 deletions

View File

@@ -5,7 +5,6 @@ import (
"crypto/sha256"
"encoding/json"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"strings"
@@ -139,7 +138,7 @@ func (p *puller) Pull(ctx context.Context, uri, dst string) (err error) {
}
// defaults to $TMPDIR or /tmp
tmpDir, err := ioutil.TempDir(p.tmpDirPath, "oci-bundle-")
tmpDir, err := os.MkdirTemp(p.tmpDirPath, "oci-bundle-")
if err != nil {
return err
}