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

Describe a notion of root (or similar) for source tree abstraction paths #8718

Open
5 tasks
roberth opened this issue Jul 19, 2023 · 0 comments
Open
5 tasks

Comments

@roberth
Copy link
Member

roberth commented Jul 19, 2023

Problem

Currently Nix only knows one root, /., but that changes with lazy trees.

Proposal

Document how paths work, and explain that multiple roots exists.

A root could be defined as any path that doesn't have a parent.

  • Or has itself as parent if you want to define it that way (dirOf does...)
    Also note that a file may be a root
  • Unless that possibility is removed. We might always create an unnecessary directory around such files.

TODO

  • Have lazy trees
  • Document path root, give it an anchor
  • Refer here from nixpkgs path library docs.

Checklist

Priorities

Add 👍 to issues you find important.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant