Skip to content
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

fix lookup of mangled path names #302

Merged
merged 3 commits into from
Oct 17, 2024
Merged

fix lookup of mangled path names #302

merged 3 commits into from
Oct 17, 2024

Conversation

nakengelhardt
Copy link
Member

What are the reasons/motivation for this change?

Since #298, top module names that have characters not allowed in solver format identifiers can't be resolved in property lookup as the mangled and unmangled module name are compared. (See the added test case for an example.)

Explain how this is achieved.

Always mangle both sides in name comparisons.

If applicable, please suggest to reviewers how they can test the change.

I'm not sure if the change in 154 is needed, it seems to work for submodules even before this, it only fails if it's the top module. To be honest I'm a bit confused why it works in the other case, but don't have time to track down what's happening. As long as the mangling doesn't further change already-mangled names this should be safe, but this is yet another unspoken assumption in an already-fragile construction...

@nakengelhardt nakengelhardt merged commit daed0e1 into main Oct 17, 2024
5 checks passed
@nakengelhardt nakengelhardt deleted the fix_mangle_lookup branch October 17, 2024 09:15
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