mirror of
https://github.com/ivabus/pantry
synced 2024-11-27 02:35:08 +03:00
66e988cd6a
* github.com/helmfile/vals * test with vals --help * fix typo * update test to match stderr output * remove useless and incorrect display-name property * fix GitHub version * enable cgo * add buildmode=pie to go build args for linux
31 lines
742 B
YAML
31 lines
742 B
YAML
distributable:
|
|
url: https://github.com/helmfile/vals/archive/refs/tags/v{{version}}.tar.gz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
github: helmfile/vals
|
|
|
|
provides:
|
|
- bin/vals
|
|
|
|
build:
|
|
dependencies:
|
|
go.dev: '*'
|
|
script:
|
|
- go mod download
|
|
- mkdir -p "{{ prefix }}"/bin
|
|
- go build $GOARGS -trimpath -ldflags="$LDFLAGS" -o "{{ prefix }}"/bin/vals ./cmd/vals
|
|
env:
|
|
LDFLAGS:
|
|
- -w
|
|
- -s
|
|
- -X main.version=v{{version}}
|
|
linux:
|
|
GOARGS:
|
|
- -buildmode=pie
|
|
|
|
test:
|
|
- vals --help 2>&1 | grep "vals is a Helm-like configuration"
|
|
# Some versions of vals had no command to print the version
|
|
- echo $(vals version || true) | grep "v{{version}}" || \
|
|
vals --help 2>&1 | grep -v "Print vals version"
|