Skip to content

Fix Clippy warning and stale APT package lists - #1500

Merged
thedataking merged 2 commits into
mainfrom
perl/harden-apt-ci
Aug 14, 2026
Merged

Fix Clippy warning and stale APT package lists#1500
thedataking merged 2 commits into
mainfrom
perl/harden-apt-ci

Conversation

@thedataking

@thedataking thedataking commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator

CI was blocked by two independent failures: Clippy rejected the indirect Some(...).filter(...) construction for an optional reference index, while GitHub’s Ubuntu image advertised glibc packages that had already disappeared from its mirrors, allowing the APT cache action to preserve an incomplete installation without nasm. Construct the option with bool::then_some, refresh APT metadata before installing the x86 prerequisites, and advance the cache generation so the invalid entry cannot be reused.

@thedataking
thedataking marked this pull request as ready for review August 14, 2026 08:42
@thedataking
thedataking requested a review from bdaehlie August 14, 2026 08:43
@thedataking thedataking mentioned this pull request Aug 14, 2026
Jules-Bertholet and others added 2 commits August 14, 2026 01:46
`use_ref` already expresses whether `refidx` should be present, so
construct the `Option` from that boolean instead of creating `Some` and
filtering it afterward. This is equivalent while satisfying Clippy's
more direct idiom.
@thedataking thedataking changed the title Harden APT setup in x86 CI Fix Clippy warning and stale APT package lists Aug 14, 2026
@thedataking
thedataking merged commit d3d1cd6 into main Aug 14, 2026
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants