2023-02-25 07:27:02 +03:00
|
|
|
distributable:
|
|
|
|
url: https://github.com/golangci/golangci-lint/archive/refs/tags/v{{version}}.tar.gz
|
|
|
|
|
|
|
|
versions:
|
2023-06-02 07:08:25 +03:00
|
|
|
github: golangci/golangci-lint/tags
|
2023-02-25 07:27:02 +03:00
|
|
|
strip: /^v/
|
|
|
|
|
2023-06-02 07:08:25 +03:00
|
|
|
warnings:
|
|
|
|
- vendored
|
|
|
|
|
2023-02-25 07:27:02 +03:00
|
|
|
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
|
|
|
|
|
2023-06-02 07:08:25 +03:00
|
|
|
test:
|
|
|
|
# FIXME: this works around a bug introduced in 1.53.0
|
|
|
|
# https://github.com/golangci/golangci-lint/issues/3862#issuecomment-1572973588
|
|
|
|
dependencies:
|
|
|
|
go.dev: ^1.17
|
|
|
|
script: golangci-lint help linters
|
|
|
|
env:
|
|
|
|
GOROOT: $(go env GOROOT)
|