mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 02:15:06 +03:00
28 lines
478 B
YAML
28 lines
478 B
YAML
|
distributable:
|
||
|
url: https://github.com/bazelbuild/buildtools/archive/refs/tags/v{{version}}.tar.gz
|
||
|
strip-components: 1
|
||
|
|
||
|
versions:
|
||
|
github: bazelbuild/buildtools
|
||
|
|
||
|
build:
|
||
|
dependencies:
|
||
|
go.dev: '^1.19'
|
||
|
script: |
|
||
|
go mod download
|
||
|
go build -ldflags "$LDFLAGS" -o {{prefix}}/bin/buildifier ./buildifier
|
||
|
env:
|
||
|
LDFLAGS:
|
||
|
- -s
|
||
|
- -w
|
||
|
linux:
|
||
|
LDFLAGS:
|
||
|
- -buildmode=pie
|
||
|
|
||
|
provides:
|
||
|
- bin/buildifier
|
||
|
|
||
|
test:
|
||
|
script:
|
||
|
buildifier -help
|