diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e645b270..63a15efe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,6 +12,8 @@ jobs: steps: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 + with: + go-version: '^1.17.0' - run: go test -gcflags=all=-d=checkptr -v ./... build: diff --git a/pipe.go b/pipe.go index 58fa5f83..1acb2014 100644 --- a/pipe.go +++ b/pipe.go @@ -89,8 +89,7 @@ const ( var ( // ErrPipeListenerClosed is returned for pipe operations on listeners that have been closed. - // This error should match net.errClosing since docker takes a dependency on its text. - ErrPipeListenerClosed = errors.New("use of closed network connection") + ErrPipeListenerClosed = net.ErrClosed errPipeWriteClosed = errors.New("pipe has been closed for write") )