Skip to content

Fix name normalization bug #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 2, 2025
Merged

Conversation

sirosen
Copy link
Contributor

@sirosen sirosen commented May 2, 2025

Group names were not being normalized when loaded from includes. As a result, they didn't match the normalized names used for the loaded groups.

This updates the internal name usage to be normalized during resolution. Errors will still contain the non-normalized name which the user used if possible (see: the CyclicDependencyError parameters).

A new test confirms the fix, and fails without it.

Initially reported via pip v25.1 in pypa/pip#13372
cc @henryiii , I intend to merge this and cut a release to fix pretty quickly, assuming CI passes.


📚 Documentation preview 📚: https://dependency-groups--26.org.readthedocs.build/en/26/

Group names were not being normalized when loaded from includes. As a
result, they didn't match the normalized names used for the loaded
groups.

This updates the internal name usage to be normalized during
resolution. Errors will still contain the non-normalized name which
the user used if possible (see: the `CyclicDependencyError`
parameters).

A new test confirms the fix, and fails without it.
@sirosen sirosen merged commit 35ad9c3 into main May 2, 2025
11 checks passed
@sirosen sirosen deleted the fix-mishandling-of-normalized-names branch May 2, 2025 00:19
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.

2 participants