mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 10:35:17 +03:00
32 lines
681 B
YAML
32 lines
681 B
YAML
|
# https://kpt.dev/
|
||
|
|
||
|
distributable:
|
||
|
url: https://github.com/kptdev/kpt/archive/refs/tags/v{{version}}.tar.gz
|
||
|
strip-components: 1
|
||
|
|
||
|
versions:
|
||
|
github: kptdev/kpt/tags
|
||
|
|
||
|
dependencies:
|
||
|
git-scm.org: '*'
|
||
|
|
||
|
build:
|
||
|
dependencies:
|
||
|
go.dev: ^1.14
|
||
|
script: go build -v -trimpath -ldflags="$LDFLAGS" -o "{{prefix}}/bin/kpt" .
|
||
|
env:
|
||
|
LDFLAGS:
|
||
|
- -s
|
||
|
- -w
|
||
|
- -X github.com/GoogleContainerTools/kpt/run.version={{version}}
|
||
|
linux:
|
||
|
# or segmentation fault
|
||
|
# fix found here https://github.com/docker-library/golang/issues/402#issuecomment-982204575
|
||
|
LDFLAGS:
|
||
|
- -buildmode=pie
|
||
|
|
||
|
provides:
|
||
|
- bin/kpt
|
||
|
|
||
|
test: test "$(kpt version)" = {{version}}
|