Skip to content

Commit d425c7c

Browse files
Default to linux in client
Signed-off-by: Gabriel Adrian Samfira <[email protected]>
1 parent edae0c6 commit d425c7c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

client/llb/meta.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"context"
55
"fmt"
66
"net"
7-
"runtime"
87

98
"github.com/containerd/containerd/platforms"
109
"github.com/google/shlex"
@@ -77,7 +76,7 @@ func dirf(value string, replace bool, v ...interface{}) StateOption {
7776
}
7877
return func(s State) State {
7978
return s.withValue(keyDir, func(ctx context.Context, c *Constraints) (interface{}, error) {
80-
platform := runtime.GOOS
79+
platform := "linux"
8180
if c != nil && c.Platform != nil {
8281
platform = c.Platform.OS
8382
}

0 commit comments

Comments
 (0)