You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the flake output schema docs the template path argument needs to be a nix store path. CI using something like
nix --store ~/nix flake check -L
would currently fail because the paths are relative. This is not noticeable without the --store flag on an empty nix store, because the paths in local git repos will already be on the users local /nix/store path. I think the solution here is to convert all template directories to implicit derivations by using something like this:
- path = ./mytemplate;+ path = "${./mytemplate}";
@domenkozar I think this is is also an issue in the devenv repo and probably in many other repos as well. We noticed this because our CI for eomii/rules_ll#65 failed. Before I start sending PRs everywhere, is my proposed solution correct or am I missing something?
According to the flake output schema docs the template
path
argument needs to be a nix store path. CI using something likenix --store ~/nix flake check -L
would currently fail because the paths are relative. This is not noticeable without the
--store
flag on an empty nix store, because the paths in local git repos will already be on the users local/nix/store
path. I think the solution here is to convert all template directories to implicit derivations by using something like this:@domenkozar I think this is is also an issue in the devenv repo and probably in many other repos as well. We noticed this because our CI for eomii/rules_ll#65 failed. Before I start sending PRs everywhere, is my proposed solution correct or am I missing something?
cc @jaroeichler
The text was updated successfully, but these errors were encountered: