Skip to content

Commit

Permalink
feat(back): #1223 enforce root jobs
Browse files Browse the repository at this point in the history
- Force jobs to begin with /
for currently CLI compatibility

Signed-off-by: Daniel Salazar <[email protected]>
  • Loading branch information
dsalaza4 committed Dec 19, 2024
1 parent be8e013 commit 59ddb6e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/evaluator/modules/jobs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
{ config, lib, ... }:
let
makeOutput = name: value: {
inherit name;
name = if lib.strings.hasPrefix "/" name then
name
else
abort
''The job "${name}" must begin with a slash. Rename it to "/${name}"'';
inherit value;
};
in {
Expand Down

0 comments on commit 59ddb6e

Please sign in to comment.