containerd / fifo

fifo pkg for Go
https://containerd.io
Apache License 2.0
87 stars 30 forks source link

use golang.org/x/sys/unix for dup2 #28

Closed BenTheElder closed 4 years ago

BenTheElder commented 4 years ago

fixes build on arm64 / fixes https://github.com/containerd/fifo/issues/27

Signed-off-by: Benjamin Elder bentheelder@google.com

BenTheElder commented 4 years ago

Before:

$ GOARCH=arm64 GOOS=linux go build ./...
# github.com/containerd/fifo
./fifo.go:51:12: undefined: syscall.Dup2

After:

$ GOARCH=arm64 GOOS=linux go build ./...