Repository navigation
fix(container): drop the unused shortName parameter on electResolvedImage - #83
Merged
Merged
Conversation
…mage main is red. #82 split ResolveLocalImage into a gather and an election, and the election kept a shortName parameter it never reads — the name filtering all happens in gatherResolverCandidates, before election. container/local_image_coneb.go:505:82: electResolvedImage - shortName is unused (unparam) Caught by the golangci-lint gate added in #78, one commit after it landed, on its own author. That is the gate working exactly as intended: without it this would have sat on main until it blocked whoever touched this repo next, because the pre-commit hook lints the WHOLE repo rather than the diff. I ran `go build ./container/`, `go vet ./container/` and `go test ./container/` before #82 but not `golangci-lint run ./...` — the one check that would have seen it. Claude-Session: https://claude.ai/code/session_016fnPmYiC6ZkqXSi6D8PAP6
Review — PASSHead SHA: Security screen: PASS — no secrets, no scope mismatch, no weakened guardrails, no supply-chain changes. The diff is a single-parameter removal in an unexported function; no T1–T4 concerns. Checklist: All applicable rules PASS or NA.
No comments in thread to adjudicate. Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
atrawog
added a commit
that referenced
this pull request
Aug 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mainis red, and this fixes it.#82 split
ResolveLocalImageinto a candidate gather and an election. The election kept ashortNameparameter it never reads — all the name filtering happens ingatherResolverCandidates, before election ever runs.The gate caught its own author, one commit later
This was found by the
golangci-lintstep added in #78 — landed minutes earlier, and its first catch is my own regression. That is the argument for the gate, demonstrated rather than asserted: without it, this sits onmainuntil it blocks whoever touches this repo next, because the pre-commit hook lints the whole repo rather than the diff.It is also a straightforward process failure on my part. Before #82 I ran
go build ./container/,go vet ./container/andgo test ./container/— none of which seeunparam— and notgolangci-lint run ./..., the one check that would have.How tested
golangci-lint run ./...is the check that was failing; it is clean on this tree, and this PR's owngojob is the gate confirming it.Rulebook compliance
mainis red now; fixed here, not filed.//nolintor an_ = shortName.Change classification
golangci-lint run ./...,go build ./..., fullgo test ./...on the committed treefully tested and validated— the failing check passes locally on this tree and the full suite is greenAssisted-by: Claude Code Anthropic Opus 5 (fully tested and validated)