Package Details: golangci-lint 1.63.4-1

Git Clone URL: https://aur.archlinux.org/golangci-lint.git (read-only, click to copy)
Package Base: golangci-lint
Description: Fast linters runner for Go.
Upstream URL: https://golangci.com
Keywords: go golangci golangci-lint gometalinter lint linter
Licenses: GPL-3.0
Conflicts: golangci-lint
Provides: golangci-lint
Submitter: matthias.lisin
Maintainer: ldez
Last Packager: ldez
Votes: 17
Popularity: 0.92
First Submitted: 2019-05-04 18:39 (UTC)
Last Updated: 2025-01-03 20:11 (UTC)

Latest Comments

1 2 Next › Last »

pcmoore commented on 2025-01-01 22:06 (UTC)

Thanks for updating the PKGBUILD, but it is now broken in a different way:

makepkg .
/.../golangci-lint/PKGBUILD: line 15: syntax error near unexpected token `('
/.../golangci-lint/PKGBUILD: line 15: `sha256sums=('503d81f4e22ae9dfb1a95b65c6a955dfb6b6617a9ef795186278c628e7a46a12')build() {'
==> ERROR: Failed to source /.../golangci-lint/PKGBUILD

pcmoore commented on 2025-01-01 15:32 (UTC)

This might not be the right fix, but I had to apply the following changes to get the PKGBUILD to work:

diff --git a/PKGBUILD b/PKGBUILD
index 5ff2c6d37..eed1e6c3c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,7 +11,7 @@ license=('GPL-3.0')
 provides=('golangci-lint')
 conflicts=('golangci-lint')
 makedepends=('go' 'git')
-source=("${pkgname}_${pkgver}.tar.gz::https://github.com/golangci/golangci-lint/releases/download/v1.63.0/golangci-lint-1.63.0-source.tar.gz")
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/golangci/golangci-lint/releases/download/v1.63.0/golangci-lint-1.63.0-source.tar.gz")
 sha256sums=('7560b7380a47f60cd153afb08cfea42957f1725a34e4b20928ac578e4ece8156')

 build() {
@@ -30,8 +30,6 @@ build() {
   export CGO_LDFLAGS="${LDFLAGS}"
   export GOFLAGS='-buildmode=pie -trimpath -modcacherw'

-  cd "$pkgname-$pkgver"
-
   go build -o "$pkgname" -ldflags="${_flags[*]}" ./cmd/"$pkgname"
   ./"$pkgname" completion bash > completion.bash
   ./"$pkgname" completion zsh > completion.zsh
@@ -39,7 +37,6 @@ build() {
 }

 package() {
-  cd "${pkgname}-${pkgver}"
   install -Dm755 "$pkgname" -t "$pkgdir"/usr/bin
   install -Dm644 completion.bash "$pkgdir"/usr/share/bash-completion/completions/"$pkgname"
   install -Dm644 completion.zsh "$pkgdir"/usr/share/zsh/site-functions/_"$pkgname"

pancho commented on 2022-03-18 22:01 (UTC) (edited on 2022-03-18 22:33 (UTC) by pancho)

Hi, @matthias.lisin.

Thanks a lot for this package!

I kindly request the addition of

./"$pkgname" completion fish | install -Dm644 /dev/stdin "$pkgdir"/usr/share/fish/vendor_completions.d/golangci-lint.fish

to prepare(), so that fish users can benefit from this package's completion.

(Thanks also to @Idez, who packages golangci-lit-bin, for fixing my initial proposal!)

Thanks a lot!

matthias.lisin commented on 2020-07-31 13:55 (UTC)

@graysky Looks like you might have CGO_ENABLED=0 set in your environment. Pushed an update, should work now.

graysky commented on 2020-07-31 09:47 (UTC) (edited on 2020-07-31 09:51 (UTC) by graysky)

Unable to build in a clean build root. full log: https://gist.github.com/graysky2/38a136cfaecbf71e7bfc40cfaa120526

matthias.lisin commented on 2020-07-07 20:01 (UTC)

@muesli Weird. I really thought we found the issue last time. Guess not.

I don't have much time right now, so no check as quickfix.

muesli commented on 2020-07-07 19:53 (UTC)

Latest release fails building during the tests, looking for sources in a golangci-lint-1.28.0 dir (the previous release's version).

matthias.lisin commented on 2020-05-01 18:22 (UTC)

@muesli nice, thanks for info. let's see if it breaks with next release

muesli commented on 2020-05-01 17:27 (UTC)

@matthias.lisin: still builds fine with yay here, nice job!