mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
+github.com/loq9/go-sponge
This commit is contained in:
parent
85ee358dd0
commit
d62bba1b4e
1 changed files with 37 additions and 0 deletions
37
projects/github.com/loq9/go-sponge/package.yml
Normal file
37
projects/github.com/loq9/go-sponge/package.yml
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
distributable:
|
||||||
|
url: https://github.com/LOQ9/go-sponge/archive/refs/tags/v{{version}}.tar.gz
|
||||||
|
strip-components: 1
|
||||||
|
|
||||||
|
display-name: go-sponge
|
||||||
|
|
||||||
|
versions:
|
||||||
|
github: LOQ9/go-sponge
|
||||||
|
strip:
|
||||||
|
- /^v/
|
||||||
|
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
go.dev: ^1.20
|
||||||
|
env:
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
LDFLAGS:
|
||||||
|
- -s
|
||||||
|
- -w
|
||||||
|
linux:
|
||||||
|
LDFLAGS:
|
||||||
|
- -buildmode=pie
|
||||||
|
script: go build -v -ldflags="${LDFLAGS}" -o "{{ prefix }}"/bin/go-sponge
|
||||||
|
|
||||||
|
provides:
|
||||||
|
- bin/go-sponge
|
||||||
|
|
||||||
|
test:
|
||||||
|
dependencies:
|
||||||
|
gnu.org/coreutils: '*'
|
||||||
|
stedolan.github.io/jq: ^1.6
|
||||||
|
|
||||||
|
script: |
|
||||||
|
jq --null-input \
|
||||||
|
'type|if "null" then {A:3} else .+={A:3} end' db.json \
|
||||||
|
| go-sponge db.json
|
||||||
|
cat db.json
|
Loading…
Reference in a new issue