Make builds more stable with upload name

This commit is contained in:
Greg Hellings
2025-03-23 00:28:35 -05:00
parent 5bd0310a7b
commit 8b5c35e2e5
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -53,8 +53,9 @@ with lib;
);
uploadRunner = getExe (
pkgs.writeShellScriptBin "uploade-to-cache-runner.sh" ''
sum=$(printf "$OUT_PATHS" | ${lib.getExe' pkgs.coreutils-full "sha256sum"})
${lib.getExe' config.systemd.package "systemd-run"} \
--unit "upload-$(${lib.getExe' pkgs.coreutils "date"} +%s%3N)" \
--unit "upload-$(${lib.getExe' pkgs.coreutils "date"} +%s%3N)-$sum" \
--property Type=exec \
--property CollectMode=inactive \
--property Group=nixbld \