@cryptotaxi247 / infra-1 / commits / fc8eaa1a

tarball-mirror: add error message on channels.nix assert

This change makes the assertion print a helpful error message in case there are multiple primary stable configured.

Martin Weinelt committed May 23, 2025 at 21:01 UTC fc8eaa1a150ebd2cd7920fd2fda3896c5e4db4b1
1 file changed +1 -1
modules/tarball-mirror.nix
+1 -1
@@ -21,7 +21,7 @@ let
21 ) (import ../channels.nix).channels
22 );
23 branch =
24 - assert lib.length branches == 1;
24 + assert (lib.assertMsg (lib.length branches == 1) "Multiple primary releases are marked as stable");
25 head branches;
26 in
27