pantry/projects/github.com/bazelbuild/bazelisk/package.yml
Markus Zoppelt f87861021c
add bazel/bazelisk (#4334)
* add `bazel`/`bazelisk`

* clean up deps

---------

Co-authored-by: Jacob Heider <jacob@pkgx.dev>
2023-12-07 12:04:10 -05:00

33 lines
638 B
YAML

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