mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
+thoughtworks.github.io/talisman (#5541)
* new file: projects/thoughtworks.github.io/talisman/package.yml * +git-scm.com * Update package.yml
This commit is contained in:
parent
1c7a88c7b6
commit
da013c762c
1 changed files with 34 additions and 0 deletions
34
projects/thoughtworks.github.io/talisman/package.yml
Normal file
34
projects/thoughtworks.github.io/talisman/package.yml
Normal file
|
@ -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'
|
Loading…
Reference in a new issue