diff --git a/backend/Taskfile.yml b/backend/Taskfile.yml index 9d15e34..a73fb2e 100644 --- a/backend/Taskfile.yml +++ b/backend/Taskfile.yml @@ -30,7 +30,7 @@ tasks: silent: true - cmd: rm -f dist/bin/* silent: true - - cmd: go build -ldflags="-X main.commit={{.GIT_COMMIT}} -X main.version={{.VERSION}}" -o ../dist/bin/server ./cmd/server/main.go + - cmd: go build -buildvcs=false -ldflags="-X main.commit={{.GIT_COMMIT}} -X main.version={{.VERSION}}" -o ../dist/bin/server ./cmd/server/main.go silent: true - task: lint vars: diff --git a/scripts/ci/build-backend b/scripts/ci/build-backend index 7f39085..513dba6 100755 --- a/scripts/ci/build-backend +++ b/scripts/ci/build-backend @@ -54,6 +54,7 @@ build_backend() { -w '/app/backend' \ "${IMAGE}" \ go build \ + -buildvcs=false \ -ldflags "-w -s -X main.commit=${BUILD_COMMIT:-notset} -X main.version=${BUILD_VERSION} -X main.sentryDSN=${SENTRY_DSN:-}" \ -o "/app/bin/$FILENAME" \ ./cmd/server diff --git a/scripts/go-multiarch-wrapper b/scripts/go-multiarch-wrapper index d606127..42addd2 100755 --- a/scripts/go-multiarch-wrapper +++ b/scripts/go-multiarch-wrapper @@ -23,6 +23,7 @@ esac echo -e "${BLUE}❯ ${CYAN}Building binary for ${YELLOW}${GOARCH} (${TARGETPLATFORM:-})${RESET}" go build \ + -buildvcs=false \ -ldflags "-w -s -X main.commit=${BUILD_COMMIT:-notset} -X main.version=${BUILD_VERSION} -X main.sentryDSN=${SENTRY_DSN:-}" \ -o "${1:-/dist/server}" \ ./cmd/server