mirror of
https://github.com/ivabus/pantry
synced 2024-11-25 18:05:07 +03:00
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 <jacob@pkgx.dev>
This commit is contained in:
parent
8e3ecea9e7
commit
612ff5c2cd
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
@ -34,4 +35,4 @@ build:
|
|||
LDFLAGS:
|
||||
- -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"'
|
||||
|
|
Loading…
Reference in a new issue