Skip to content

Commit 324a081

Browse files
committed
Removed x/sys/unix dependency
1 parent a4cf4af commit 324a081

3 files changed

Lines changed: 2 additions & 7 deletions

File tree

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ go 1.12
44

55
require (
66
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e
7-
golang.org/x/sys v0.0.0-20191010194322-b09406accb47
87
golang.org/x/tools v0.0.0-20191011211836-4c025a95b26e
98
)

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJ
55
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e h1:vcxGaoTs7kV8m5Np9uUNQin4BrLOthgV7252N8V+FwY=
66
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
77
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
8-
golang.org/x/sys v0.0.0-20191010194322-b09406accb47 h1:/XfQ9z7ib8eEJX2hdgFTZJ/ntt0swNk5oYBziWeTCvY=
9-
golang.org/x/sys v0.0.0-20191010194322-b09406accb47/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
108
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
119
golang.org/x/tools v0.0.0-20191011211836-4c025a95b26e h1:1o2bDs9pCd2xFhdwqJTrCIswAeEsn4h/PCNelWpfcsI=
1210
golang.org/x/tools v0.0.0-20191011211836-4c025a95b26e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=

walker_unix.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ package walker
66
import (
77
"os"
88
"syscall"
9-
10-
"golang.org/x/sys/unix"
119
)
1210

1311
func (w *walker) readdir(dirname string) error {
@@ -25,7 +23,7 @@ func (w *walker) readdir(dirname string) error {
2523
for {
2624
if bufp >= nbuf {
2725
bufp = 0
28-
nbuf, err = unix.ReadDirent(fd, buf)
26+
nbuf, err = syscall.ReadDirent(fd, buf)
2927
if err != nil {
3028
return err
3129
}
@@ -34,7 +32,7 @@ func (w *walker) readdir(dirname string) error {
3432
}
3533
}
3634

37-
consumed, count, names := unix.ParseDirent(buf[bufp:nbuf], 100, names[0:])
35+
consumed, count, names := syscall.ParseDirent(buf[bufp:nbuf], 100, names[0:])
3836
bufp += consumed
3937

4038
for _, name := range names[:count] {

0 commit comments

Comments
 (0)