mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-12 01:53:50 +02:00
golangci-lint: update to 2.1.6.
This commit is contained in:
parent
a7d0208e3b
commit
ee3f22980f
1 changed files with 14 additions and 2 deletions
|
@ -1,8 +1,9 @@
|
|||
# Template file for 'golangci-lint'
|
||||
pkgname=golangci-lint
|
||||
version=2.0.1
|
||||
version=2.1.6
|
||||
revision=1
|
||||
build_style=go
|
||||
build_helper=qemu
|
||||
go_import_path="github.com/golangci/golangci-lint/v2"
|
||||
go_package="./cmd/golangci-lint"
|
||||
go_ldflags="-X main.version=${version} -X main.date=${SOURCE_DATE_EPOCH} -X main.commit=v${version}"
|
||||
|
@ -12,11 +13,22 @@ license="GPL-3.0-only"
|
|||
homepage="https://github.com/golangci/golangci-lint"
|
||||
changelog="https://raw.githubusercontent.com/golangci/golangci-lint/master/CHANGELOG.md"
|
||||
distfiles="https://github.com/golangci/golangci-lint/archive/v${version}.tar.gz"
|
||||
checksum=036cb1cb358a416d73525172dd235c5284b69c4c4ceb91e66fd1d661b4d6e24b
|
||||
checksum=0ae50c50dbc7603ed27a6f559dca194cb8851f030410c5635270866e78cb3400
|
||||
_completions="bash zsh fish"
|
||||
|
||||
# fix: collect2: fatal error: cannot find 'ld'
|
||||
export LDFLAGS="-fuse-ld=bfd"
|
||||
|
||||
post_build() {
|
||||
local cli=$(find "$GOPATH/bin" -name $pkgname)
|
||||
for shell in $_completions; do
|
||||
vtargetrun "$cli" completion "$shell" >"completion.$shell"
|
||||
done
|
||||
}
|
||||
|
||||
post_install() {
|
||||
for shell in $_completions; do
|
||||
vcompletion "completion.$shell" "$shell"
|
||||
done
|
||||
vdoc README.md
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue