Skip to content

Commit ad73e37

Browse files
authored
fix: hard code amd64 to support remote build (#1577)
Signed-off-by: Ce Gao <[email protected]>
1 parent 599f001 commit ad73e37

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pkg/builder/util.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import (
2323

2424
"github.com/cockroachdb/errors"
2525
"github.com/containerd/console"
26-
"github.com/containerd/containerd/platforms"
2726
"github.com/moby/buildkit/client"
2827
gatewayclient "github.com/moby/buildkit/frontend/gateway/client"
2928
v1 "github.com/opencontainers/image-spec/specs-go/v1"
@@ -37,7 +36,6 @@ const (
3736

3837
func ImageConfigStr(labels map[string]string, ports map[string]struct{},
3938
entrypoint []string, env []string, user string) (string, error) {
40-
pl := platforms.Normalize(platforms.DefaultSpec())
4139
img := v1.Image{
4240
Config: v1.ImageConfig{
4341
Labels: labels,
@@ -47,7 +45,7 @@ func ImageConfigStr(labels map[string]string, ports map[string]struct{},
4745
ExposedPorts: ports,
4846
Entrypoint: entrypoint,
4947
},
50-
Architecture: pl.Architecture,
48+
Architecture: "amd64",
5149
// Refer to https://github.com/tensorchord/envd/issues/269#issuecomment-1152944914
5250
OS: "linux",
5351
RootFS: v1.RootFS{

0 commit comments

Comments
 (0)