aboutsummaryrefslogtreecommitdiffhomepage
path: root/builder/musl.go
diff options
context:
space:
mode:
authorDamian Gryski <[email protected]>2022-08-05 12:26:15 -0700
committerRon Evans <[email protected]>2022-08-07 10:32:23 +0200
commitedbbca5614fc5694d0c631cbcea73c7e2e90b336 (patch)
treecf46bf79f6a7edbb3d4966d8a93d50950d1347ca /builder/musl.go
parent13f21477b118e3f410a196cafcf2e46823e8ba61 (diff)
downloadtinygo-edbbca5614fc5694d0c631cbcea73c7e2e90b336.tar.gz
tinygo-edbbca5614fc5694d0c631cbcea73c7e2e90b336.zip
all: remove calls to deprecated ioutil package
Fixes produced via semgrep and https://github.com/dgryski/semgrep-go/blob/master/ioutil.yml
Diffstat (limited to 'builder/musl.go')
-rw-r--r--builder/musl.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/builder/musl.go b/builder/musl.go
index 5dae0428a..8a3716f08 100644
--- a/builder/musl.go
+++ b/builder/musl.go
@@ -3,7 +3,6 @@ package builder
import (
"bytes"
"fmt"
- "io/ioutil"
"os"
"path/filepath"
"regexp"
@@ -35,7 +34,7 @@ var Musl = Library{
filepath.Join(muslDir, "include", "alltypes.h.in"),
}
for _, infile := range infiles {
- data, err := ioutil.ReadFile(infile)
+ data, err := os.ReadFile(infile)
if err != nil {
return err
}
@@ -63,7 +62,7 @@ var Musl = Library{
if err != nil {
return err
}
- data, err := ioutil.ReadFile(filepath.Join(muslDir, "arch", arch, "bits", "syscall.h.in"))
+ data, err := os.ReadFile(filepath.Join(muslDir, "arch", arch, "bits", "syscall.h.in"))
if err != nil {
return err
}