From 845fe7eca422d667b768f29c135a79fd7968a30d Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Wed, 17 Feb 2021 15:27:40 -0800 Subject: [PATCH] fix error checking Signed-off-by: Andrea Luzzardi --- dagger/client.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dagger/client.go b/dagger/client.go index 5aee8e1a..191086bf 100644 --- a/dagger/client.go +++ b/dagger/client.go @@ -3,6 +3,7 @@ package dagger import ( "archive/tar" "context" + "errors" "fmt" "io" "os" @@ -169,7 +170,7 @@ func (c *Client) outputfn(ctx context.Context, r io.Reader) (*compiler.Value, er tr := tar.NewReader(r) for { h, err := tr.Next() - if err == io.EOF { + if errors.Is(err, io.EOF) { break } if err != nil {