From 51c28fc4752df084a277795ebcb0132e29fee60b Mon Sep 17 00:00:00 2001 From: Lili Cosic Date: Mon, 19 Apr 2021 17:48:23 +0200 Subject: [PATCH] build.sh: Adjust building etcdctl to be same as etcd binary This fixes so that the ENV vars are taken in the same way as for etcd binary. --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 66d78973a..b8d1709da 100755 --- a/build.sh +++ b/build.sh @@ -51,7 +51,7 @@ etcd_build() { # shellcheck disable=SC2086 ( cd ./etcdctl - run env CGO_ENABLED=0 GO_BUILD_FLAGS="${GO_BUILD_FLAGS}" go build $GO_BUILD_FLAGS \ + run env GO_BUILD_FLAGS="${GO_BUILD_FLAGS}" "${GO_BUILD_ENV[@]}" go build $GO_BUILD_FLAGS \ -installsuffix=cgo \ "-ldflags=${GO_LDFLAGS[*]}" \ -o="../${out}/etcdctl" . || return 2