Reimplement lib.types.path.check #76977
Labels
0.kind: bug
Something is broken
6.topic: nixos
Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS
6.topic: non-nixos
Running packages on non-NixOS Linux
Describe the bug
To Reproduce
Steps to reproduce the behavior:
Partiality:
Adding sources to store:
types.path
optionExpected behavior
No side effects, so also no exceptions.
Additional context
path.check
will need to understand when string coercion is possible to avoid both exceptions and adding sources to the store.toString implementation:
https://github.com/NixOS/nix/blob/f800d450b78091835ab7ca67847d76e75d877a24/src/libexpr/primops.cc#L1762
string coercion:
https://github.com/NixOS/nix/blob/f800d450b78091835ab7ca67847d76e75d877a24/src/libexpr/eval.cc#L1593-L1648
Metadata
Maintainer information:
The text was updated successfully, but these errors were encountered: