Skip to content

Template paths need to be nix store paths #65

Description

@aaronmondal

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?

cc @jaroeichler

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions