Commit graph

3 commits

Author SHA1 Message Date
awalsh128 12c20ea77f Drop trailing period from no-candidate error string
golangci-lint v2 (from #223) flags ST1005 on error strings ending in
punctuation. Rebuild the committed apt_query binaries and source hash.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 17:34:45 -08:00
awalsh128 88af1dc50d Regenerate apt_query.srchash after merging master
#223 changed src/internal/cmdtesting/cmdtesting.go, which is part of the
hashed Go sources. The rebuilt binaries are byte-identical; only the
source hash changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 17:25:23 -08:00
awalsh128 06ebcd9b21 Fail the action on package resolution and install errors
lib.sh disables errexit, so failures from package resolution, apt-fast
install, and repository setup were ignored and an incomplete install could
be cached. Check each of these explicitly and abort with a distinct exit
code, and verify every requested package is installed before caching.

- Report virtual packages with no providers (e.g. python on 22.04) with a
  clear error instead of a mangled "Reverse=Provides:" package (#166).
- Stop reporting each apt_query error twice.
- Guard logging.Debug against an uninitialized logger.
- Add an abort helper to lib.sh and use it for all abort sites.
- Add distribute.sh build-committed-binaries / check-committed-binaries and
  apt_query.srchash so PR CI fails when the committed binaries are stale
  (#166, #218). Release and committed builds share build_apt_query.
- Rebuild the committed apt_query binaries.
- Make the expected-failure tests actually fail when the action succeeds,
  and add regression tests for #166 and #221.

Fixes #166
Fixes #221

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 15:50:38 -08:00