Skip to content

fix(dnf): use str starts-with for record type check in install_pkgs#572

Merged
gmpinder merged 1 commit into
blue-build:mainfrom
fromelicks:fix/dnf-describe-record
Jun 12, 2026
Merged

fix(dnf): use str starts-with for record type check in install_pkgs#572
gmpinder merged 1 commit into
blue-build:mainfrom
fromelicks:fix/dnf-describe-record

Conversation

@fromelicks

Copy link
Copy Markdown
Contributor

In Nushell, describe on a record returns the full type signature (e.g. record<repo: string, packages: list<string>>), not just "record", so the equality check introduced in #564 always fails and silently skips all repo-specific package installs. Fix matches the pattern already used in add_coprs.

Closes #571

Nushell's describe returns the full type signature for records
("record<key: type, ...>"), not just "record". The equality check
== 'record' is therefore always false, silently skipping all
repo-specific package installs (terra, COPR, etc.).

Fix matches the existing pattern already used in add_coprs.

Closes blue-build#571
@fromelicks fromelicks requested a review from gmpinder as a code owner June 12, 2026 19:53
@fromelicks

Copy link
Copy Markdown
Contributor Author

I tested this fix in my repo (https://github.com/fromelicks/secureblue-blue-build/blob/main/recipes/recipe.yml#L21) and it works nicely.

@gmpinder gmpinder left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the fix!

@gmpinder gmpinder merged commit a97bce3 into blue-build:main Jun 12, 2026
3 of 5 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.

bug(dnf): repo-specific package installs silently skipped since #564 — describe returns full type signature, not "record"

2 participants