Skip to content

Commit

Permalink
Go - os.Mkdir doesn't use libc
Browse files Browse the repository at this point in the history
  • Loading branch information
facundopoblete committed Nov 30, 2024
1 parent d6456e4 commit d220886
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tests/go-e2e-dir/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
module dir_go

go 1.19

require golang.org/x/sys v0.27.0
2 changes: 2 additions & 0 deletions tests/go-e2e-dir/go.sum
Original file line number Diff line number Diff line change
@@ -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=
3 changes: 2 additions & 1 deletion tests/go-e2e-dir/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"fmt"
"golang.org/x/sys/unix"
"os"

"C"
Expand All @@ -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)
Expand Down

0 comments on commit d220886

Please sign in to comment.