Closed michaelpj closed 4 years ago
I tried to fix this, and I'm a little baffled by the restrictions. If I revert to just using ./.
for src
it works, but if I use even a trivial builtins.filterSource
call it fails. I would have expected the builtin to work, but apparently not...
Fixed by #115
https://github.com/moretea/yarn2nix/commit/8c73c4a4f296b1cb52f83d9697e03b895f277abe broke using yarn2nix on hydra in restricted mode.
The problem is this code: https://github.com/moretea/yarn2nix/commit/8c73c4a4f296b1cb52f83d9697e03b895f277abe#diff-5712e736e0de6ba170577f8472c398e9R369
I think what's going on is that this constructs paths from strings, and ends up trying to read what looks to hydra like a random store path. I think this is the same underlying issue as in https://github.com/NixOS/nixpkgs/issues/35207.
To reproduce:
Evaluating in restricted mode gives something like: