From af9ae7dbb7e873c1bb176939454542cafafe77e6 Mon Sep 17 00:00:00 2001 From: cofecatt <60803595+cofecatt@users.noreply.github.com> Date: Fri, 2 Sep 2022 14:50:27 +0800 Subject: [PATCH] feat: buildx failed with: EROR: failed to solve: executor failed running [/bin/sh -c ./build.sh]: exit code: 127 (#1089) --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index a99d24f6..f024f63e 100755 --- a/build.sh +++ b/build.sh @@ -6,6 +6,6 @@ then echo "Successfully connected to Google, no need to use Go proxy" else echo "Google is blocked, Go proxy is enabled: GOPROXY=https://goproxy.cn,direct" - GO_PROXY_SETTING=GOPROXY=https://goproxy.cn,direct + GO_PROXY_SETTING=$(GOPROXY=https://goproxy.cn,direct) fi CGO_ENABLED=0 GOOS=linux GOARCH=amd64 $GO_PROXY_SETTING go build -ldflags="-w -s" -o server .