Commit a220b6b
committed
Fix non-fetchTree pure-eval use of builtins.path
This is a rare combination, and it would have been more relevant
before #67, but it is a
tested fix nonetheless.
(Specifically, for issues like hercules-ci/flake-parts#252)
builtins.path had `sha256` since its introduction, so no problem
there.
This also catches accidental path-based impurities. Flakes are meant
to be pure. "path" inputs do ask for trouble, but that doesn't mean
we should violate purity.
Also note that `fetchTree` will happily use the `narHash` anyway, so
this change makes the behavior more consistent between configurations
with and without `fetchTree`.1 parent 9ed2ac1 commit a220b6b
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
0 commit comments