mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
gitlab.com/greut/eclint (#3584)
* gitlab.com/greut/eclint * gitlab.com/greut/eclint
This commit is contained in:
parent
5be3ff76a0
commit
7b55400ae5
1 changed files with 27 additions and 0 deletions
27
projects/gitlab.com/greut/eclint/package.yml
Normal file
27
projects/gitlab.com/greut/eclint/package.yml
Normal file
|
@ -0,0 +1,27 @@
|
|||
distributable:
|
||||
url: https://gitlab.com/greut/eclint/-/archive/v{{version}}/eclint-v{{version}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
gitlab: greut/eclint
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
go.dev: '*'
|
||||
script:
|
||||
- go mod download
|
||||
- mkdir -p {{prefix}}/bin
|
||||
- go build -trimpath -ldflags="$LDFLAGS" -o "{{ prefix }}"/bin/eclint ./cmd/eclint
|
||||
env:
|
||||
LDFLAGS:
|
||||
- -s
|
||||
- -w
|
||||
- -X main.version=v{{version}}
|
||||
CGO_ENABLED: 0
|
||||
|
||||
provides:
|
||||
- bin/eclint
|
||||
|
||||
test:
|
||||
script:
|
||||
- eclint -version | grep "v{{version}}"
|
Loading…
Reference in a new issue