mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
add bazel
/bazelisk
(#4334)
* add `bazel`/`bazelisk` * clean up deps --------- Co-authored-by: Jacob Heider <jacob@pkgx.dev>
This commit is contained in:
parent
e716f911e2
commit
f87861021c
1 changed files with 32 additions and 0 deletions
32
projects/github.com/bazelbuild/bazelisk/package.yml
Normal file
32
projects/github.com/bazelbuild/bazelisk/package.yml
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
distributable:
|
||||||
|
url: https://github.com/bazelbuild/bazelisk/archive/refs/tags/v{{version}}.tar.gz
|
||||||
|
strip-components: 1
|
||||||
|
|
||||||
|
versions:
|
||||||
|
github: bazelbuild/bazelisk
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
curl.se/ca-certs: '*'
|
||||||
|
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
go.dev: '^1.20'
|
||||||
|
script:
|
||||||
|
- go mod download
|
||||||
|
- go build -ldflags "$LDFLAGS" -o "{{prefix}}/bin/bazelisk"
|
||||||
|
- ln -s bazelisk {{prefix}}/bin/bazel
|
||||||
|
|
||||||
|
env:
|
||||||
|
LDFLAGS:
|
||||||
|
- -s
|
||||||
|
- -w
|
||||||
|
- -X=github.com/bazelbuild/bazelisk/main.BazeliskVersion=v{{version}}
|
||||||
|
linux:
|
||||||
|
LDFLAGS:
|
||||||
|
- -buildmode=pie
|
||||||
|
|
||||||
|
provides:
|
||||||
|
- bin/bazel # symlink to bazelisk
|
||||||
|
- bin/bazelisk
|
||||||
|
|
||||||
|
test: bazel version
|
Loading…
Reference in a new issue