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

normalize paths when root is / #905

Merged

Conversation

mcdonc
Copy link
Contributor

@mcdonc mcdonc commented Dec 19, 2023

When devenv.root is "/", devenv.state becomes "//.devenv/state," and similar with devenv.dotfile. Avoid this by normalizing using builtins.toPath to normalize the path (it strips extra slashes).

This is a fork of the python-rewrite branch, for better or worse.

@domenkozar
Copy link
Member

TIL

nix-repl> builtins.toPath "//a"
"/a"

@domenkozar domenkozar merged commit d4da9da into cachix:python-rewrite Dec 31, 2023
114 of 177 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.

2 participants