From bbb6e313f5b036a2fda44cd6cf726eb5826ffbf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Mon, 26 Jan 2026 21:15:25 +0200 Subject: [PATCH 1/3] refactor(golangci/golangci-lint): re-scaffold --- pkgs/golangci/golangci-lint/pkg.yaml | 6 ++ pkgs/golangci/golangci-lint/registry.yaml | 67 ++++++++++++++++++----- registry.yaml | 67 ++++++++++++++++++----- 3 files changed, 114 insertions(+), 26 deletions(-) diff --git a/pkgs/golangci/golangci-lint/pkg.yaml b/pkgs/golangci/golangci-lint/pkg.yaml index 738121af0c3..697df454569 100644 --- a/pkgs/golangci/golangci-lint/pkg.yaml +++ b/pkgs/golangci/golangci-lint/pkg.yaml @@ -1,2 +1,8 @@ packages: - name: golangci/golangci-lint@v2.8.0 + - name: golangci/golangci-lint + version: v1.42.0 + - name: golangci/golangci-lint + version: v1.36.0 + - name: golangci/golangci-lint + version: v1.17.1 diff --git a/pkgs/golangci/golangci-lint/registry.yaml b/pkgs/golangci/golangci-lint/registry.yaml index edd4f45bf2e..83f78742fdd 100644 --- a/pkgs/golangci/golangci-lint/registry.yaml +++ b/pkgs/golangci/golangci-lint/registry.yaml @@ -3,16 +3,57 @@ packages: - type: github_release repo_owner: golangci repo_name: golangci-lint - description: Fast linters Runner for Go - asset: golangci-lint-{{trimV .Version}}-{{.OS}}-{{.Arch}}.{{.Format}} - files: - - name: golangci-lint - src: golangci-lint-{{trimV .Version}}-{{.OS}}-{{.Arch}}/golangci-lint - format: tar.gz - overrides: - - goos: windows - format: zip - checksum: - type: github_release - asset: golangci-lint-{{trimV .Version}}-checksums.txt - algorithm: sha256 + description: Fast linters runner for Go + version_constraint: "false" + version_overrides: + - version_constraint: semver("<= 1.3.4") + no_asset: true + - version_constraint: semver("<= 1.17.1") + asset: golangci-lint-{{trimV .Version}}-{{.OS}}-{{.Arch}}.{{.Format}} + format: tar.gz + rosetta2: true + windows_arm_emulation: true + checksum: + type: github_release + asset: golangci-lint-{{trimV .Version}}-checksums.txt + algorithm: sha256 + overrides: + - goos: windows + format: zip + supported_envs: + - darwin + - windows + - amd64 + - version_constraint: semver("<= 1.36.0") + asset: golangci-lint-{{trimV .Version}}-{{.OS}}-{{.Arch}}.{{.Format}} + format: tar.gz + rosetta2: true + windows_arm_emulation: true + checksum: + type: github_release + asset: golangci-lint-{{trimV .Version}}-checksums.txt + algorithm: sha256 + overrides: + - goos: windows + format: zip + - version_constraint: semver("<= 1.42.0") + asset: golangci-lint-{{trimV .Version}}-{{.OS}}-{{.Arch}}.{{.Format}} + format: tar.gz + windows_arm_emulation: true + checksum: + type: github_release + asset: golangci-lint-{{trimV .Version}}-checksums.txt + algorithm: sha256 + overrides: + - goos: windows + format: zip + - version_constraint: "true" + asset: golangci-lint-{{trimV .Version}}-{{.OS}}-{{.Arch}}.{{.Format}} + format: tar.gz + checksum: + type: github_release + asset: golangci-lint-{{trimV .Version}}-checksums.txt + algorithm: sha256 + overrides: + - goos: windows + format: zip diff --git a/registry.yaml b/registry.yaml index ecc0fb2a24e..4be6d61f56d 100644 --- a/registry.yaml +++ b/registry.yaml @@ -39713,19 +39713,60 @@ packages: - type: github_release repo_owner: golangci repo_name: golangci-lint - description: Fast linters Runner for Go - asset: golangci-lint-{{trimV .Version}}-{{.OS}}-{{.Arch}}.{{.Format}} - files: - - name: golangci-lint - src: golangci-lint-{{trimV .Version}}-{{.OS}}-{{.Arch}}/golangci-lint - format: tar.gz - overrides: - - goos: windows - format: zip - checksum: - type: github_release - asset: golangci-lint-{{trimV .Version}}-checksums.txt - algorithm: sha256 + description: Fast linters runner for Go + version_constraint: "false" + version_overrides: + - version_constraint: semver("<= 1.3.4") + no_asset: true + - version_constraint: semver("<= 1.17.1") + asset: golangci-lint-{{trimV .Version}}-{{.OS}}-{{.Arch}}.{{.Format}} + format: tar.gz + rosetta2: true + windows_arm_emulation: true + checksum: + type: github_release + asset: golangci-lint-{{trimV .Version}}-checksums.txt + algorithm: sha256 + overrides: + - goos: windows + format: zip + supported_envs: + - darwin + - windows + - amd64 + - version_constraint: semver("<= 1.36.0") + asset: golangci-lint-{{trimV .Version}}-{{.OS}}-{{.Arch}}.{{.Format}} + format: tar.gz + rosetta2: true + windows_arm_emulation: true + checksum: + type: github_release + asset: golangci-lint-{{trimV .Version}}-checksums.txt + algorithm: sha256 + overrides: + - goos: windows + format: zip + - version_constraint: semver("<= 1.42.0") + asset: golangci-lint-{{trimV .Version}}-{{.OS}}-{{.Arch}}.{{.Format}} + format: tar.gz + windows_arm_emulation: true + checksum: + type: github_release + asset: golangci-lint-{{trimV .Version}}-checksums.txt + algorithm: sha256 + overrides: + - goos: windows + format: zip + - version_constraint: "true" + asset: golangci-lint-{{trimV .Version}}-{{.OS}}-{{.Arch}}.{{.Format}} + format: tar.gz + checksum: + type: github_release + asset: golangci-lint-{{trimV .Version}}-checksums.txt + algorithm: sha256 + overrides: + - goos: windows + format: zip - type: github_release repo_owner: golangci repo_name: golines From a34f907cf1e46f74eecb93664f94ff75af5d5e3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Mon, 26 Jan 2026 21:15:25 +0200 Subject: [PATCH 2/3] fix(golangci/golangci-lint): files --- pkgs/golangci/golangci-lint/registry.yaml | 3 +++ registry.yaml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/pkgs/golangci/golangci-lint/registry.yaml b/pkgs/golangci/golangci-lint/registry.yaml index 83f78742fdd..6af1905b182 100644 --- a/pkgs/golangci/golangci-lint/registry.yaml +++ b/pkgs/golangci/golangci-lint/registry.yaml @@ -4,6 +4,9 @@ packages: repo_owner: golangci repo_name: golangci-lint description: Fast linters runner for Go + files: + - name: golangci-lint + src: golangci-lint-{{trimV .Version}}-{{.OS}}-{{.Arch}}/golangci-lint version_constraint: "false" version_overrides: - version_constraint: semver("<= 1.3.4") diff --git a/registry.yaml b/registry.yaml index 4be6d61f56d..ba02d318ba8 100644 --- a/registry.yaml +++ b/registry.yaml @@ -39714,6 +39714,9 @@ packages: repo_owner: golangci repo_name: golangci-lint description: Fast linters runner for Go + files: + - name: golangci-lint + src: golangci-lint-{{trimV .Version}}-{{.OS}}-{{.Arch}}/golangci-lint version_constraint: "false" version_overrides: - version_constraint: semver("<= 1.3.4") From 347401a67991c7d96f4519a0e58a0bda48672fec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Mon, 26 Jan 2026 21:18:41 +0200 Subject: [PATCH 3/3] feat(golangci/golangci-lint): GitHub artifact attestations config --- pkgs/golangci/golangci-lint/pkg.yaml | 2 ++ pkgs/golangci/golangci-lint/registry.yaml | 12 ++++++++++++ registry.yaml | 12 ++++++++++++ 3 files changed, 26 insertions(+) diff --git a/pkgs/golangci/golangci-lint/pkg.yaml b/pkgs/golangci/golangci-lint/pkg.yaml index 697df454569..f39d84df713 100644 --- a/pkgs/golangci/golangci-lint/pkg.yaml +++ b/pkgs/golangci/golangci-lint/pkg.yaml @@ -1,5 +1,7 @@ packages: - name: golangci/golangci-lint@v2.8.0 + - name: golangci/golangci-lint + version: v2.7.2 - name: golangci/golangci-lint version: v1.42.0 - name: golangci/golangci-lint diff --git a/pkgs/golangci/golangci-lint/registry.yaml b/pkgs/golangci/golangci-lint/registry.yaml index 6af1905b182..4b8b83260cb 100644 --- a/pkgs/golangci/golangci-lint/registry.yaml +++ b/pkgs/golangci/golangci-lint/registry.yaml @@ -50,6 +50,16 @@ packages: overrides: - goos: windows format: zip + - version_constraint: semver("< 2.8.0") + asset: golangci-lint-{{trimV .Version}}-{{.OS}}-{{.Arch}}.{{.Format}} + format: tar.gz + checksum: + type: github_release + asset: golangci-lint-{{trimV .Version}}-checksums.txt + algorithm: sha256 + overrides: + - goos: windows + format: zip - version_constraint: "true" asset: golangci-lint-{{trimV .Version}}-{{.OS}}-{{.Arch}}.{{.Format}} format: tar.gz @@ -60,3 +70,5 @@ packages: overrides: - goos: windows format: zip + github_artifact_attestations: + signer_workflow: golangci/golangci-lint/.github/workflows/release.yml diff --git a/registry.yaml b/registry.yaml index ba02d318ba8..8799acfd8e3 100644 --- a/registry.yaml +++ b/registry.yaml @@ -39760,6 +39760,16 @@ packages: overrides: - goos: windows format: zip + - version_constraint: semver("< 2.8.0") + asset: golangci-lint-{{trimV .Version}}-{{.OS}}-{{.Arch}}.{{.Format}} + format: tar.gz + checksum: + type: github_release + asset: golangci-lint-{{trimV .Version}}-checksums.txt + algorithm: sha256 + overrides: + - goos: windows + format: zip - version_constraint: "true" asset: golangci-lint-{{trimV .Version}}-{{.OS}}-{{.Arch}}.{{.Format}} format: tar.gz @@ -39770,6 +39780,8 @@ packages: overrides: - goos: windows format: zip + github_artifact_attestations: + signer_workflow: golangci/golangci-lint/.github/workflows/release.yml - type: github_release repo_owner: golangci repo_name: golines