Closed PerchunPak closed 3 weeks ago
I believe this is (imo) a Nix bug (it is something I ran into years ago) and can be worked around by using Snowfall Lib's fs helpers such as lib.snowfall.fs.get-file
.
The issue is likely caused by the change to lib.snowfall.fs.get-snowfall-file
and its non-snowfall counterpart. The change switched from using strings calculated from src
to creating path types. Because of this separate entries are added to the nix store for each of the sub-directories. For this reason using the parent path directly will fail because Nix is using the context of the subdirectory that was stored as its own separate store entry.
Fixing this would mean reverting the path typing change. With the deprecation of toPath
I don't think there is another option for getting actual paths.
After b2e636407591bfe7a1f9a4ff50e282ed51ce7b59, for some reason, paths are not resolved properly anymore. Here is minimal reproducible example:
For reference, here is my flake.lock https://gist.github.com/PerchunPak/4ee341dda628466030d0d8e2ffd8b03d