-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Flake paths should use virtual store directories #9852
Comments
seems to work for me.
|
I can reproduce what @infinisil said, but the problem is not with |
Yeah it should be fixed the other way around, paths in Flakes should use the virtual store dir: {
outputs = { ... }: {
path = ./.;
storeDir = builtins.storeDir;
};
}
I expect the last value to also be |
builtins.storeDir
does not get remapped when using --store
{
outputs = { ... }: {
path = builtins.trace ./. "";
storeDir = builtins.storeDir;
};
}
it's not specific to |
this is the one
|
That function call is gone on
|
Oh nevermind, it's all the The solution is probably to avoid calling |
Now that #10088 is merged, the fix is slightly different but morally still the same. |
Potential fix: #10345 |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: |
I'm not sure whether it has really been fixed of whether the problem is with actually with https://github.com/NixOS/nixpkgs/blob/85a13515a5fd98ca1a4aeefcaedcb6417f841e13/lib/types.nix#L538 in my case: |
When using a flake with
--store
,builtins.storeDir
contains the wrong path. I ran into this while trying to uselib.fileset.gitTracked
in combination with--store
. See NixOS/nixpkgs#283843 for the original issue I filed.@infinisil suggests this should be fixed on the flake side, rather than by adjusting
lib.fileset.gitTracked
. I don't know how this would play with the other types of stores, since I have only tried thechroot
one.Priorities
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: