mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
Add golangci-lint
This commit is contained in:
parent
5d2ab57587
commit
63861a3aa2
26
projects/golangci-lint.run/package.yml
Normal file
26
projects/golangci-lint.run/package.yml
Normal file
|
@ -0,0 +1,26 @@
|
|||
distributable:
|
||||
url: https://github.com/golangci/golangci-lint/archive/refs/tags/v{{version}}.tar.gz
|
||||
|
||||
versions:
|
||||
github: golangci/golangci-lint/tags
|
||||
strip: /^v/
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
curl.se: '*'
|
||||
info-zip.org/unzip: '*'
|
||||
working-directory: ${{prefix}}
|
||||
script: |
|
||||
curl -sSfL "https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh" | sh -s -- -b ./bin v{{version}}
|
||||
env:
|
||||
darwin/aarch64: {PLATFORM: darwin-aarch64}
|
||||
darwin/x86-64: {PLATFORM: darwin-x64}
|
||||
linux/aarch64: {PLATFORM: linux-aarch64}
|
||||
linux/x86-64: {PLATFORM: linux-x64}
|
||||
|
||||
|
||||
provides:
|
||||
- bin/golangci-lint
|
||||
|
||||
test: |
|
||||
golangci-lint help linters
|
Loading…
Reference in a new issue