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

Add CanonPath wrapper to represent canonicalized paths #7450

Merged
merged 1 commit into from
Dec 19, 2022

Conversation

edolstra
Copy link
Member

Extracted from the lazy-trees branch.

CanonPath is a class used by the evaluator and libfetcher to provide a canonical representation of paths (i.e. always starting with a slash, never ending with a slash, not having adjacent slashes, and not containing . and .. components).

@edolstra edolstra merged commit d00bfe4 into NixOS:master Dec 19, 2022
@edolstra edolstra deleted the canon-path branch December 19, 2022 15:21
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