From 9826851e2f8abd56fc1de7c0d74ae42499e1c4a5 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Fri, 2 Jun 2023 00:08:25 -0400 Subject: [PATCH] fix(golangci) --- projects/golangci-lint.run/package.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/projects/golangci-lint.run/package.yml b/projects/golangci-lint.run/package.yml index 79e9c5c3..cba77d79 100644 --- a/projects/golangci-lint.run/package.yml +++ b/projects/golangci-lint.run/package.yml @@ -2,9 +2,12 @@ distributable: url: https://github.com/golangci/golangci-lint/archive/refs/tags/v{{version}}.tar.gz versions: - github: golangci/golangci-lint/tags + github: golangci/golangci-lint/tags strip: /^v/ +warnings: + - vendored + build: dependencies: curl.se: '*' @@ -17,10 +20,15 @@ build: 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 +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)