You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
chore(lint): pre-existing errcheck in build/registry.go (resp.Body.Close) #51
The configured golangci-lint run ./... (v2.13.2, go1.26.8) reports one
pre-existing finding in candy/plugin-build/registry.go:
registry.go:95:23: Error return value of `resp.Body.Close` is not checked (errcheck)
defer resp.Body.Close()
^
1 issues:
* errcheck: 1
Measured on origin/main (91517ade518572b12ed5c840f60ca172e1d88df2) — the defer resp.Body.Close() is present there unchanged — so it is not introduced
by the build:ensure run-engine PR that measured it.
RCA
Mechanism.defer resp.Body.Close() discards the close error; the
configured errcheck does not exempt it in this file.
Missed control. This repo's stated gate is go build ./... + go test ./...; .github/workflows/ carries only tag-on-merge.yml, so no
workflow runs golangci-lint and nothing surfaces the finding.
Blast radius. Lint-only; no runtime behavior changes.
Root fix. Make the ignore explicit (defer func() { _ = resp.Body.Close() }())
or handle the error, and add the configured lint run to a repo CI workflow so
the class cannot silently return.
Why this is filed rather than fixed here
It is separable from the run-engine build change that measured it; that change
is correct and complete without it, and touching an unrelated file would widen
a focused build fix.
Agent: containerd-crabbox-program/engine Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash:cloud (documentation reviewed)
Activity