From f142ce26b5e7d809cefce5343f377c955829e0a6 Mon Sep 17 00:00:00 2001 From: tannevaled Date: Thu, 23 May 2024 18:05:50 +0200 Subject: [PATCH] +onsi.github.io/ginkgo (#6216) * +onsi.github.io/ginkgo * use {{ version.tag }} for safety --------- Co-authored-by: Jacob Heider --- projects/onsi.github.io/ginkgo/package.yml | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 projects/onsi.github.io/ginkgo/package.yml diff --git a/projects/onsi.github.io/ginkgo/package.yml b/projects/onsi.github.io/ginkgo/package.yml new file mode 100644 index 00000000..f2b49430 --- /dev/null +++ b/projects/onsi.github.io/ginkgo/package.yml @@ -0,0 +1,27 @@ +distributable: + url: https://github.com/onsi/ginkgo/archive/refs/tags/{{version.tag}}.tar.gz + strip-components: 1 + +display-name: ginkgo + +versions: + github: onsi/ginkgo + +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/ginkgo ./ginkgo/main.go + +provides: + - bin/ginkgo + +test: test "$(ginkgo version|cut -d' ' -f3)" = {{ version }}