diff --git a/scripts/provider_bundler.sh b/scripts/provider_bundler.sh index e664e59f93..e15dfa84f4 100755 --- a/scripts/provider_bundler.sh +++ b/scripts/provider_bundler.sh @@ -9,7 +9,6 @@ PROVIDER_NAME=$1 PROVIDER_PATH=$REPOROOT/providers/$PROVIDER_NAME PROVIDER_DIST=$PROVIDER_PATH/dist BUNDLE_DIST=$REPOROOT/dist -LDFLAGSDIST='-tags production -ldflags "-s -w"' cd $REPOROOT @@ -60,7 +59,7 @@ build_bundle(){ echo "Building ${PROVIDER_DIST}/${PROVIDER_NAME} for ${GOOS}/${GOARCH}/${GOARM} ..." # we switch into the path to use the local go.mods - cd ${PROVIDER_PATH} && CGO_ENABLED=0 GOOS=${GOOS} GOARCH=${GOARCH} GOARM=${GOARM} go build ${LDFLAGSDIST} -o ${PROVIDER_DIST}/${PROVIDER_NAME} main.go + cd ${PROVIDER_PATH} && CGO_ENABLED=0 GOOS=${GOOS} GOARCH=${GOARCH} GOARM=${GOARM} go build -tags production -ldflags "-s -w" -o ${PROVIDER_DIST}/${PROVIDER_NAME} main.go # set linux flags that do not work on macos TAR_FLAGS=""