Skip to content

Instantly share code, notes, and snippets.

@ItalyPaleAle
Last active July 31, 2023 23:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ItalyPaleAle/e55d6140b29da2ee6cd2539ad22cbe85 to your computer and use it in GitHub Desktop.
Save ItalyPaleAle/e55d6140b29da2ee6cd2539ad22cbe85 to your computer and use it in GitHub Desktop.
build-dapr.sh
#!/bin/bash
set -e
DIR=$(dirname "$BASH_SOURCE")
echo "Getting into directory ${DIR}/dapr"
cd "${DIR}/dapr"
#DEBUG=1 make build
CGO_ENABLED=0 \
go build \
-ldflags="-X github.com/dapr/dapr/pkg/buildinfo.gitversion=v1-dirty -X github.com/dapr/dapr/pkg/buildinfo.version=dev -X github.com/dapr/kit/logger.DaprVersion=dev -s -w" \
-tags "allcomponents,subtlecrypto,${BUILD_TAGS}" \
-o ~/.dapr/bin/daprd \
./cmd/daprd/;
echo "Built dapr to ~/.dapr/bin/daprd"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment