Skip to content

fix(build): fetch golangci-lint install.sh from main branch - #3928

Open
aqeelat wants to merge 1 commit into
tektoncd:mainfrom
aqeelat:fix/golangci-install-script-url
Open

fix(build): fetch golangci-lint install.sh from main branch#3928
aqeelat wants to merge 1 commit into
tektoncd:mainfrom
aqeelat:fix/golangci-install-script-url

Conversation

@aqeelat

@aqeelat aqeelat commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

Changes

make lint-go fails checksum verification when bootstrapping golangci-lint: the Makefile fetches install.sh from the deprecated master branch, whose checksum lookup uses an unanchored grep "${BASENAME}". Releases now ship SBOM sidecars (<tarball>.sbom.json), so the lookup matches two checksum lines and the comparison always fails — even though the downloaded tarball hash is correct.

This switches the URL to the main branch, where the lookup is anchored (grep "${BASENAME}$"). Verified make lint-go end-to-end on darwin/arm64 with v2.12.2: downloads, verifies, lints clean.

Upstream issue (closed, fixed on main): golangci/golangci-lint#6572

Submitter Checklist

These are criteria that every PR should meet, please check them off as you review them:

Note: make lint-go passes end-to-end (this PR fixes its bootstrap). make lint-yaml couldn't run locally (yamllint not installed); this change doesn't touch YAML linting. No functionality or user-facing behavior changed, so no tests/docs included.

Release Notes

NONE

The Makefile fetched install.sh from the deprecated golangci-lint
master branch. That copy greps the checksums file with an unanchored
basename match, which since the v2.12.2 release also matches the new
.sbom.json sidecar entries. The resulting multi-line "want" hash never
equals the tarball hash, so make lint-go fails checksum verification
even though the download is intact.

The main branch anchors the lookup (grep "${BASENAME}$") and installs
v2.12.2 cleanly. Verified make lint-go end-to-end with the new URL.

Upstream: golangci/golangci-lint#6572

Signed-off-by: Abdullah Alaqeel <abdullah.t.aqeel@gmail.com>
Assisted-by: GLM-5.2 (via opencode)
@tekton-robot tekton-robot added the release-note-none Denotes a PR that doesnt merit a release note. label Aug 15, 2026
@tekton-robot tekton-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Aug 15, 2026
@codecov

codecov Bot commented Aug 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 26.33%. Comparing base (f407f97) to head (2ee131a).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3928   +/-   ##
=======================================
  Coverage   26.33%   26.33%           
=======================================
  Files         465      465           
  Lines       24951    24951           
=======================================
  Hits         6572     6572           
  Misses      17661    17661           
  Partials      718      718           
Flag Coverage Δ
unit-tests 26.33% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@pratap0007

Copy link
Copy Markdown
Contributor

@aqeelat Thanks for the fix!
/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 17, 2026
@tekton-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: waveywaves
To complete the pull request process, please ask for approval from pratap0007 after the PR has been reviewed.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesnt merit a release note. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants