diff options
Diffstat (limited to 'build/generate-licenses.go')
-rw-r--r-- | build/generate-licenses.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/build/generate-licenses.go b/build/generate-licenses.go index 4009a0351d..75fb7cc810 100644 --- a/build/generate-licenses.go +++ b/build/generate-licenses.go @@ -9,7 +9,6 @@ import ( "flag" "fmt" "io" - "io/ioutil" "log" "net/http" "os" @@ -34,7 +33,7 @@ func main() { flag.StringVar(&githubApiToken, "token", "", "github api token") flag.Parse() - file, err := ioutil.TempFile(os.TempDir(), prefix) + file, err := os.CreateTemp(os.TempDir(), prefix) if err != nil { log.Fatalf("Failed to create temp file. %s", err) |