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

how should paths be used in the context of lazy trees #7335

Closed
roberth opened this issue Nov 23, 2022 · 3 comments
Closed

how should paths be used in the context of lazy trees #7335

roberth opened this issue Nov 23, 2022 · 3 comments

Comments

@roberth
Copy link
Member

roberth commented Nov 23, 2022

Nix + Nixpkgs seem to emphasize path values over relative path strings.

Discuss how paths should be used in the context of lazy trees.

@roberth is trying to prevent a catastrophic mistake of making the Nix language UX confusing due to increased prevalence of relative path strings in NixOS/nixpkgs#200718

OT: I tried to make a Project note, but it appeared as "draft". Are notes not a feature anymore?

@roberth roberth changed the title Nix + Nixpkgs seem to emphasize path values over relative path strings. Discuss how paths should be used in the context of lazy trees; @roberth is trying to prevent a catastrophic mistake of making the Nix language UX confusing due to increased prevalence of relative path strings in https://github.com/NixOS/nixpkgs/pull/200718 [Nix team agenda] discuss paths / relative paths / lazy trees Nov 23, 2022
@fricklerhandwerk
Copy link
Contributor

@roberth could you instead make a pull request with a proposal that the team can discuss? Otherwise, the results of the discussion will evaporate in a closed issue.

Here's an example what that may look like: #6232

It can be a file somewhere in this repository, we can still clean it up when we find a better structure than /maintainers/stuff.md.

@fricklerhandwerk fricklerhandwerk changed the title [Nix team agenda] discuss paths / relative paths / lazy trees how should paths and relative be used in the context of lazy trees Dec 2, 2022
@fricklerhandwerk fricklerhandwerk changed the title how should paths and relative be used in the context of lazy trees how should paths be used in the context of lazy trees Dec 2, 2022
@nixos-discourse
Copy link

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/2022-12-02-nix-team-meeting-minutes-13/23731/1

@roberth
Copy link
Member Author

roberth commented Dec 9, 2022

In the prior to last meeting, Eelco has said that the Nix language isn't intended for path processing. So path values are meant to be used directly by users.

@infinisil is currently working on a few support functions that work well with path values. These functions are meant to cover use cases that aren't directly covered by the language itself, but rather supplement it. They are not meant to replace or abstract the path value, but rather supplement it, to make some advanced cases easier to implement. Examples are the path filtering library in Nixpkgs, or perhaps file discovery such as performed by dream2nix.

I think that, unless @infinisil has any questions, all that really remains is for the path documentation to be improved: #6530 (comment)

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

No branches or pull requests

4 participants