From da013c762cc2642b4125b102c58a0fea5b8640f9 Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Mon, 11 Mar 2024 20:15:42 +0200 Subject: [PATCH] +thoughtworks.github.io/talisman (#5541) * new file: projects/thoughtworks.github.io/talisman/package.yml * +git-scm.com * Update package.yml --- .../talisman/package.yml | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 projects/thoughtworks.github.io/talisman/package.yml diff --git a/projects/thoughtworks.github.io/talisman/package.yml b/projects/thoughtworks.github.io/talisman/package.yml new file mode 100644 index 00000000..44eee64a --- /dev/null +++ b/projects/thoughtworks.github.io/talisman/package.yml @@ -0,0 +1,34 @@ +distributable: + url: https://github.com/thoughtworks/talisman/archive/refs/tags/{{version.tag}}.tar.gz + strip-components: 1 + +versions: + github: thoughtworks/talisman + +build: + dependencies: + go.dev: ^1.21 + script: + go build $ARGS -ldflags="$LDFLAGS" ./cmd + env: + ARGS: + - -trimpath + - -o={{prefix}}/bin/talisman + linux: + ARGS: + - -buildmode=pie + LDFLAGS: + - -s + - -w + - -X=main.Version={{version.tag}} + +provides: + - bin/talisman + +test: + dependencies: + git-scm.org: '*' + script: + - talisman --version | grep {{version}} + - git init . + - talisman --scan | grep 'Talisman done'