From 7768c71fd8083ea21572de2859fed39c17524baf Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 13 Nov 2026 20:34:59 +0000 Subject: populate: check the settings of sources in the spec The program checks that each source's settings are those lib/types/populate.nix defines for its type, with values of the kinds it defines, for specs from elsewhere than default.nix: a misspelt setting fails, as design.md promises, instead of being ignored, and so does a setting the program would treat as its default because of its kind. This subsumes the check of absolute paths. ln gets a symlink source's target after --, so it can't be taken for an option either. --- pkgs/populate/src/sh.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgs/populate/src/sh.rs') diff --git a/pkgs/populate/src/sh.rs b/pkgs/populate/src/sh.rs index 15da78c..9daa60b 100644 --- a/pkgs/populate/src/sh.rs +++ b/pkgs/populate/src/sh.rs @@ -238,7 +238,7 @@ nix-build -E "$3" -o "$1" >&2 /// symlink PATH TARGET: makes PATH a symlink to TARGET. pub const SYMLINK: &str = r#" -ln -fnsT "$2" "$1" +ln -fnsT -- "$2" "$1" "#; /// Defines git_problems PATH, which prints why populate can't use the .git -- cgit v1.3.1