diff --git a/tests/go-e2e-dir/go.mod b/tests/go-e2e-dir/go.mod index c4f729fcd23..29f0b1694d8 100644 --- a/tests/go-e2e-dir/go.mod +++ b/tests/go-e2e-dir/go.mod @@ -1,3 +1,5 @@ module dir_go go 1.19 + +require golang.org/x/sys v0.27.0 diff --git a/tests/go-e2e-dir/go.sum b/tests/go-e2e-dir/go.sum index e69de29bb2d..bacf4326be7 100644 --- a/tests/go-e2e-dir/go.sum +++ b/tests/go-e2e-dir/go.sum @@ -0,0 +1,2 @@ +golang.org/x/sys v0.27.0 h1:wBqf8DvsY9Y/2P8gAfPDEYNuS30J4lPHJxXSb/nJZ+s= +golang.org/x/sys v0.27.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= diff --git a/tests/go-e2e-dir/main.go b/tests/go-e2e-dir/main.go index b608f01b53b..07ec3da3289 100644 --- a/tests/go-e2e-dir/main.go +++ b/tests/go-e2e-dir/main.go @@ -2,6 +2,7 @@ package main import ( "fmt" + "golang.org/x/sys/unix" "os" "C" @@ -24,7 +25,7 @@ func main() { os.Exit(-1) } - err = os.Mkdir("/app/test_mkdir", 0755) + err = unix.Mkdir("/app/test_mkdir", 0755) if err != nil { fmt.Printf("Mkdir error: %s\n", err) os.Exit(-1)