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: use iterative accumulation to define module path #20

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

manishshettym
Copy link
Contributor

This PR updates the logic to define the local_path of a Module from it's identifier.

The previous version assumed that simply splitting the identifier at '.' and replacing with "/" suffices. However, this fails for paths and directories whose names have "." in them. E.g., `.../lib.linux-x86-xxx/...'.

Soln: iteratively create the path using the parts we get after splitting on "." while checking if partial paths exist. If not, merge parts into larger segment of the path.

@manishshettym manishshettym self-assigned this Sep 18, 2024
@manishshettym manishshettym merged commit 644832d into main Sep 18, 2024
2 checks passed
@manishshettym manishshettym deleted the manishs/fix-module-path branch September 18, 2024 15:58
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