mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
+istio.io (#5602)
* new file: projects/istio.io/package.yml * wants `gcc` and `ld.gold`
This commit is contained in:
parent
23fabce25f
commit
fc873ca6cf
1 changed files with 39 additions and 0 deletions
39
projects/istio.io/package.yml
Normal file
39
projects/istio.io/package.yml
Normal file
|
@ -0,0 +1,39 @@
|
|||
distributable:
|
||||
url: git+https://github.com/istio/istio.git
|
||||
ref: ${{version.tag}}
|
||||
|
||||
versions:
|
||||
github: istio/istio
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
go.dev: ^1.21
|
||||
linux/aarch64:
|
||||
gnu.org/gcc: '*' # wants `gcc` and `ld.gold`
|
||||
script:
|
||||
- go build $ARGS -ldflags="$LDFLAGS" ./istioctl/cmd/istioctl
|
||||
- ${{prefix}}/bin/istioctl collateral --man
|
||||
- mkdir -p {{prefix}}/share/man/man1
|
||||
- cp ./*.1 {{prefix}}/share/man/man1/
|
||||
env:
|
||||
ARGS:
|
||||
- -trimpath
|
||||
- -o={{prefix}}/bin/istioctl
|
||||
COMMIT_SHA: $(git describe --always --abbrev=8 --dirty)
|
||||
LDFLAGS:
|
||||
- -s
|
||||
- -w
|
||||
- -X istio.io/istio/pkg/version.buildVersion={{version}}
|
||||
- -X istio.io/istio/pkg/version.buildGitRevision=${COMMIT_SHA}
|
||||
- -X istio.io/istio/pkg/version.buildTag={{version.tag}}
|
||||
- -X istio.io/istio/pkg/version.buildHub=docker.io/istio
|
||||
linux:
|
||||
LDFLAGS:
|
||||
- -buildmode=pie
|
||||
|
||||
provides:
|
||||
- bin/istioctl
|
||||
|
||||
test:
|
||||
- istioctl version --remote=false | grep {{version}}
|
||||
- istioctl completion bash | grep '__istioctl_format_comp_descriptions()'
|
Loading…
Reference in a new issue