Skip to content

Commit

Permalink
update flags
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-rock committed Sep 20, 2023
1 parent 371fd34 commit 76dd363
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/provider_bundler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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=""
Expand Down

0 comments on commit 76dd363

Please sign in to comment.