mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
add buildifier
This commit is contained in:
parent
f73b982b2c
commit
e716f911e2
1 changed files with 27 additions and 0 deletions
27
projects/github.com/bazelbuild/buildtools/package.yml
Normal file
27
projects/github.com/bazelbuild/buildtools/package.yml
Normal file
|
@ -0,0 +1,27 @@
|
|||
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
|
Loading…
Reference in a new issue