Skip to content

fix(quickemu): select the first complete firmware pair - #1938

Open
Qusic wants to merge 1 commit into
quickemu-project:masterfrom
Qusic:fix/firmware-pair-selection
Open

fix(quickemu): select the first complete firmware pair#1938
Qusic wants to merge 1 commit into
quickemu-project:masterfrom
Qusic:fix/firmware-pair-selection

Conversation

@Qusic

@Qusic Qusic commented Jul 18, 2026

Copy link
Copy Markdown

Description

The firmware search currently checks only the CODE file and keeps scanning, so a later incomplete or lower-priority candidate can overwrite a valid preferred pair.

Require both CODE and VARS to exist, then stop at the first complete pair. This preserves the declared order, including the Microsoft-key Nix pair added by #1879.

Related: #543 previously proposed the same complete-pair validation and first-match behavior.

Testing

  • bash -n quickemu
  • shellcheck quickemu
  • nix build path:.#quickemu

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • I have performed a self-review of my code
  • I have tested my code in common scenarios and confirmed there are no regressions

Review in cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Auto-approved: Fixes a firmware selection bug by validating both the CODE and VARS files exist and stopping at the first complete pair. The change is small, bounded, maintains intended ordering, and is backed by tests.

Re-trigger cubic

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.

1 participant