Skip to content

Fix detect binary files prefix inversion - #539

Merged
schuylermartin45 merged 3 commits into
conda:mainfrom
chrisburr:fix-detect-binary-files-prefix-inversion
Jun 24, 2026
Merged

Fix detect binary files prefix inversion#539
schuylermartin45 merged 3 commits into
conda:mainfrom
chrisburr:fix-detect-binary-files-prefix-inversion

Conversation

@chrisburr

Copy link
Copy Markdown
Contributor

Description

In conda-forge/texlive-core-feedstock#110 conda-recipe-manager incorrectly converted the recipe due to the boolean flag for detect_binary_files_with_prefix not being inverted when it was renamed to ignore_binary_files.

This PR adds a test and fixes it.

Extends the dynamic-linking fixture with detect_binary_files_with_prefix
and ignore_prefix_files. The expected V1 output encodes the correct
mapping (detect_binary_files_with_prefix: true -> ignore_binary_files:
false). This currently fails because the converter does not negate the
value when renaming the field.
V0's build/detect_binary_files_with_prefix is the logical inverse of V1's
build/prefix_detection/ignore_binary_files, but the converter moved the
key without negating the value. This produced recipes with inverted
binary prefix-replacement behavior (e.g. breaking texlive-core's kpathsea
relocation). Negate the boolean as part of the move.
@schuylermartin45

schuylermartin45 commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

I probably won't get to this until tomorrow, but let's at least get those CI checks running in the meantime. Thanks!

@schuylermartin45 schuylermartin45 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

CEP-0014 arguably should have highlighted this nuance, but this makes a lot of sense. Thanks for catching this!

I'm not sure when we'll next release CRM, but this will be in it. We always appreciate the help!

@schuylermartin45
schuylermartin45 merged commit 3f2bf2f into conda:main Jun 24, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants