aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/build_trimpath.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/go/testdata/script/build_trimpath.txt')
-rw-r--r--src/cmd/go/testdata/script/build_trimpath.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd/go/testdata/script/build_trimpath.txt b/src/cmd/go/testdata/script/build_trimpath.txt
index e1ea0a48b2..2c3bee8fdc 100644
--- a/src/cmd/go/testdata/script/build_trimpath.txt
+++ b/src/cmd/go/testdata/script/build_trimpath.txt
@@ -121,6 +121,7 @@ package main
import (
"bytes"
"fmt"
+ "io/ioutil"
"log"
"os"
"os/exec"
@@ -130,7 +131,7 @@ import (
func main() {
exe := os.Args[1]
- data, err := os.ReadFile(exe)
+ data, err := ioutil.ReadFile(exe)
if err != nil {
log.Fatal(err)
}