Skip to content

fix(mise): run the pinned golangci-lint in the check:lint task - #4015

Merged
fschade merged 1 commit into
opencloud-eu:mainfrom
pbleser-oc:fix/mise-check-lint
Nov 25, 2026
Merged

fschade merged 1 commit into
opencloud-eu:mainfrom
pbleser-oc:fix/mise-check-lint

Conversation

@pbleser-oc

Copy link
Copy Markdown
Member

mise run check:lint never failed on lint issues, and then failed for another reason: it looked up the golangci-lint version in .bingo/golangci-lint.mod with the pattern golangci-lint v, which doesn't match the golangci-lint/v2 v2.13.2 module path. With an empty version, it ran make golangci-lint (which lints the whole tree and never fails, --issues-exit-code 0) and then tried to run golangci-lint-, which doesn't exist.

The task now reads the version from the require line, stops with an error if there is none, and builds only the pinned binary when it is missing.

AI assistance: Claude Code (claude-opus-5-5) found the problem and wrote the fix; I reviewed it.

The task looked up the golangci-lint version in .bingo/golangci-lint.mod
with the pattern "golangci-lint v", which no longer matches since the
module path ends in /v2. The version came out empty, so the task ran
"make golangci-lint", which lints the whole tree and never fails
(--issues-exit-code 0), and then tried to run a binary named
"golangci-lint-", which doesn't exist.

Match the require line instead, fail if no version is found, and build
only the pinned binary when it is missing.

Assisted-by: Claude Code:claude-opus-5-5
@codacy-production

codacy-production Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Up to standards βœ…

🟒 Issues 0 issues

Results:
0 new issues

View in Codacy

🟒 Coverage βˆ… diff coverage Β· 0.00% coverage variation

Metric Results
Coverage variation βœ… 0.00% coverage variation (-1.00%)
Diff coverage βœ… βˆ… diff coverage

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (9313c7c) 94248 28164 29.88%
Head commit (304bdcd) 94248 (+0) 28160 (-4) 29.88% (0.00%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#4015) 0 0 βˆ… (not applicable)

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@pbleser-oc
pbleser-oc requested a review from fschade November 16, 2026 14:26
@fschade
fschade merged commit 9ebb6a7 into opencloud-eu:main Nov 25, 2026
63 checks passed
@pbleser-oc
pbleser-oc deleted the fix/mise-check-lint branch November 25, 2026 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants