From 612ff5c2cd72358b694e6ed950ded591d40f0a0e Mon Sep 17 00:00:00 2001 From: Johannes Gustafsson Date: Mon, 27 Nov 2023 16:53:36 +0100 Subject: [PATCH] fix turso build (#4221) * fix turso build * fix test interesting that that breaks version setting, but that seems like it's working as intended by the dev? * no --version in the linux version? --------- Co-authored-by: Jacob Heider --- projects/turso.tech/package.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/projects/turso.tech/package.yml b/projects/turso.tech/package.yml index c9f62e24..3e5fbd99 100644 --- a/projects/turso.tech/package.yml +++ b/projects/turso.tech/package.yml @@ -13,6 +13,7 @@ build: script: - echo "{{version}}" > internal/cmd/version.txt - go mod download + - go generate --tags=prod ./... - go build $ARGS -ldflags="$LDFLAGS" ./cmd/turso dependencies: go.dev: ^1.20 @@ -32,6 +33,6 @@ build: # or segmentation fault # fix found here https://github.com/docker-library/golang/issues/402#issuecomment-982204575 LDFLAGS: - - -buildmode=pie + - -buildmode=pie -test: turso --version | grep {{version}} +test: 'test "$(turso db locations 2>&1 || true)" = "Error: user not logged in, please login with turso auth login"'