mirror of
https://github.com/ivabus/pantry
synced 2024-11-25 18:05:07 +03:00
+github.com/TomWright/dasel (#3743)
* +luarocks.org * omit unnecessary env * +github.com/TomWright/dasel * simpler syntax --------- Co-authored-by: Jacob Heider <jacob@pkgx.dev>
This commit is contained in:
parent
17f7ee70bd
commit
4ef7d15085
2 changed files with 32 additions and 0 deletions
5
projects/github.com/TomWright/dasel/fixture.json
Normal file
5
projects/github.com/TomWright/dasel/fixture.json
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"hello": {
|
||||
"world": "Hello, World!"
|
||||
}
|
||||
}
|
27
projects/github.com/TomWright/dasel/package.yml
Normal file
27
projects/github.com/TomWright/dasel/package.yml
Normal file
|
@ -0,0 +1,27 @@
|
|||
distributable:
|
||||
url: https://github.com/TomWright/dasel/archive/refs/tags/v{{version.raw}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
github: TomWright/dasel/tags
|
||||
strip: /v/
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
go.dev: ^1
|
||||
env:
|
||||
GOBIN: "{{prefix}}/bin"
|
||||
LDFLAGS:
|
||||
- -X 'github.com/tomwright/dasel/v2/internal.Version={{version}}'
|
||||
linux:
|
||||
# or segmentation fault
|
||||
# fix found here https://github.com/docker-library/golang/issues/402#issuecomment-982204575
|
||||
LDFLAGS:
|
||||
- -buildmode=pie
|
||||
working-directory: cmd/dasel
|
||||
script: go install -ldflags="$LDFLAGS"
|
||||
|
||||
provides:
|
||||
- bin/dasel
|
||||
|
||||
test: test "$(cat fixture.json | dasel -r json 'hello.world')" = '"Hello, World!"'
|
Loading…
Reference in a new issue