From 4ef7d15085a18d863fcbe4660164757c6fd16c76 Mon Sep 17 00:00:00 2001 From: Rajdeep Malakar Date: Sat, 21 Oct 2023 02:04:54 +0530 Subject: [PATCH] +github.com/TomWright/dasel (#3743) * +luarocks.org * omit unnecessary env * +github.com/TomWright/dasel * simpler syntax --------- Co-authored-by: Jacob Heider --- .../github.com/TomWright/dasel/fixture.json | 5 ++++ .../github.com/TomWright/dasel/package.yml | 27 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 projects/github.com/TomWright/dasel/fixture.json create mode 100644 projects/github.com/TomWright/dasel/package.yml diff --git a/projects/github.com/TomWright/dasel/fixture.json b/projects/github.com/TomWright/dasel/fixture.json new file mode 100644 index 00000000..7adf3b85 --- /dev/null +++ b/projects/github.com/TomWright/dasel/fixture.json @@ -0,0 +1,5 @@ +{ + "hello": { + "world": "Hello, World!" + } +} \ No newline at end of file diff --git a/projects/github.com/TomWright/dasel/package.yml b/projects/github.com/TomWright/dasel/package.yml new file mode 100644 index 00000000..bc94edf0 --- /dev/null +++ b/projects/github.com/TomWright/dasel/package.yml @@ -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!"'