-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't pass symlinks as flakerefs #5831
Comments
I think the reason why this was changed was to forbid symlinks being used in flake inputs. (Does this break hermetic evaluation or something?) It would still be nice to use symlinks when directly invoking the Nix tools, though. |
I don't think changing when symlinks are allowed was an intentional effect of that change. It was to solve #5387 where absolute paths were sometimes not allowed (for reasons explained by this comment).
So now, when |
Yup, just ran into this with |
Is there any way to make this work for flakes in other directories? I have my flake in a different directory and was using My workaround is:
Which works, but is a bit hacky |
Looks like this was changed in #5771, specifically here:
99d617b#diff-bf478d9714839229d3d706a7dcf96aebe2d6193e67cf06f06f440279a53ea36fL114-L116
Even if this was intended, it would be nice to have symlink flakerefs still working as CLI arguments (my config is a symlinked dir, and I haven't had issues building it until now.)
The text was updated successfully, but these errors were encountered: