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

lib.fileset.empty feature request #266366

Open
infinisil opened this issue Nov 9, 2023 · 1 comment
Open

lib.fileset.empty feature request #266366

infinisil opened this issue Nov 9, 2023 · 1 comment
Labels
5. scope: tracked Issue (or PR) is linked back to a `5. scope: tracking` issue 6.topic: lib The Nixpkgs function library

Comments

@infinisil
Copy link
Member

infinisil commented Nov 9, 2023

It could be useful to have a lib.fileset.empty, a file set containing no files, maybe for

  • Third-party functions returning file sets like
  • A default value when folding over a list of no elements in user code

Though I haven't really encountered a good use case for it, we might not need it.
However it would be trivial to add, all the code is already there, just needs to be exposed.

If somebody needs this, please 👍 and explain your use case.

This issue is sponsored by Antithesis

@infinisil
Copy link
Member Author

We might not need this if lists get coerced to unions implicitly: #267387 (comment)

@samueldr samueldr added the 5. scope: tracked Issue (or PR) is linked back to a `5. scope: tracking` issue label Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5. scope: tracked Issue (or PR) is linked back to a `5. scope: tracking` issue 6.topic: lib The Nixpkgs function library
Projects
None yet
Development

No branches or pull requests

2 participants