mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 00:45:07 +03:00
35 lines
649 B
YAML
35 lines
649 B
YAML
|
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'
|