From c47b4cfbbb67d91b9e93b3b8a88248bfa3551879 Mon Sep 17 00:00:00 2001 From: Matthias Riegler Date: Tue, 12 Dec 2023 15:36:15 +0100 Subject: [PATCH] fix: disable upx for devspace-helper on linux/arm64 This is a mitigation for https://github.com/devspace-sh/devspace/issues/2448#issuecomment-1851824126 Signed-off-by: Matthias Riegler --- hack/build-all.bash | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hack/build-all.bash b/hack/build-all.bash index b550189a52..319771532a 100755 --- a/hack/build-all.bash +++ b/hack/build-all.bash @@ -61,7 +61,8 @@ upx "${DEVSPACE_ROOT}/release/devspacehelper" #compress devspacehelper shasum -a 256 "${DEVSPACE_ROOT}/release/devspacehelper" > "${DEVSPACE_ROOT}/release/devspacehelper".sha256 GOARCH=arm64 GOOS=linux go build -ldflags "-s -w -X github.com/loft-sh/devspace/helper/cmd.version=${VERSION}" -o "${DEVSPACE_ROOT}/release/devspacehelper-arm64" helper/main.go -upx "${DEVSPACE_ROOT}/release/devspacehelper-arm64" #compress devspacehelper +# FIXME: this is not working for any number of arguments/flags +# upx "${DEVSPACE_ROOT}/release/devspacehelper-arm64" #compress devspacehelper shasum -a 256 "${DEVSPACE_ROOT}/release/devspacehelper-arm64" > "${DEVSPACE_ROOT}/release/devspacehelper-arm64".sha256 # build bin data