mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
+turso (#2856)
* +turso * fix: version https://github.com/tursodatabase/turso-cli/blob/v0.80.0/internal/cmd/version_prod.go\#L12 * wip * check tags for version * fix version logic --------- Co-authored-by: Jacob Heider <jacob@tea.xyz>
This commit is contained in:
parent
acc47d83bf
commit
bcb8bdce87
1 changed files with 37 additions and 0 deletions
37
projects/turso.tech/package.yml
Normal file
37
projects/turso.tech/package.yml
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
distributable:
|
||||||
|
url: https://github.com/tursodatabase/turso-cli/archive/refs/tags/v{{version}}.tar.gz
|
||||||
|
strip-components: 1
|
||||||
|
|
||||||
|
versions:
|
||||||
|
github: tursodatabase/turso-cli/tags
|
||||||
|
strip: /^v/
|
||||||
|
|
||||||
|
provides:
|
||||||
|
- bin/turso
|
||||||
|
|
||||||
|
build:
|
||||||
|
script:
|
||||||
|
- echo "{{version}}" > internal/cmd/version.txt
|
||||||
|
- go mod download
|
||||||
|
- go build $ARGS -ldflags="$LDFLAGS" ./cmd/turso
|
||||||
|
dependencies:
|
||||||
|
go.dev: ^1.20
|
||||||
|
env:
|
||||||
|
GO111MODULE: on
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
ARGS:
|
||||||
|
- -v
|
||||||
|
- -trimpath
|
||||||
|
- -tags=prod
|
||||||
|
- -o "{{prefix}}"/bin/turso
|
||||||
|
LDFLAGS:
|
||||||
|
- -s
|
||||||
|
- -w
|
||||||
|
- -X main.debugMode=false
|
||||||
|
linux:
|
||||||
|
# or segmentation fault
|
||||||
|
# fix found here https://github.com/docker-library/golang/issues/402#issuecomment-982204575
|
||||||
|
LDFLAGS:
|
||||||
|
- -buildmode=pie
|
||||||
|
|
||||||
|
test: turso --version | grep {{version}}
|
Loading…
Reference in a new issue