diff options
| author | Silvan Mosberger <silvan.mosberger@tweag.io> | 2023-09-20 21:08:13 +0200 |
|---|---|---|
| committer | Silvan Mosberger <silvan.mosberger@tweag.io> | 2023-10-03 21:27:40 +0200 |
| commit | b3c2281219893ee422e18f9d3917e8cc8216114d (patch) | |
| tree | fdee05538db03c9ccbff93a53686424c9e68120f /lib/fileset/internal.nix | |
| parent | Merge pull request #258119 from mweinelt/clevercsv-0.8.2 (diff) | |
| download | nixpkgs-b3c2281219893ee422e18f9d3917e8cc8216114d.tar.gz | |
lib.fileset: Order noEval last
Diffstat (limited to 'lib/fileset/internal.nix')
| -rw-r--r-- | lib/fileset/internal.nix | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/fileset/internal.nix b/lib/fileset/internal.nix index b3dbc5b33dc3..43e6dd31b711 100644 --- a/lib/fileset/internal.nix +++ b/lib/fileset/internal.nix @@ -114,8 +114,10 @@ rec { # The one and only! _internalIsEmptyWithoutBase = true; - # Double __ to make it be evaluated and ordered first - __noEval = throw _noEvalMessage; + # Due to alphabetical ordering, this is evaluated last, + # which makes the nix repl output nicer than if it would be ordered first. + # It also allows evaluating it strictly up to this error, which could be useful + _noEval = throw _noEvalMessage; }; # Create a fileset, see ./README.md#fileset @@ -137,8 +139,10 @@ rec { _internalBaseComponents = components parts.subpath; _internalTree = tree; - # Double __ to make it be evaluated and ordered first - __noEval = throw _noEvalMessage; + # Due to alphabetical ordering, this is evaluated last, + # which makes the nix repl output nicer than if it would be ordered first. + # It also allows evaluating it strictly up to this error, which could be useful + _noEval = throw _noEvalMessage; }; # Coerce a value to a fileset, erroring when the value cannot be coerced. |
