Skip to content
This repository was archived by the owner on Apr 28, 2026. It is now read-only.

Commit c5345fe

Browse files
committed
nix: add check to assert that *-prev versions actually differ
Avoids accidentally setting the current and previous version to the same version. On-behalf-of: SAP julian.schindel@sap.com Signed-off-by: Julian Schindel <julian.schindel@cyberus-technology.de>
1 parent 0deaaf6 commit c5345fe

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

flake.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,14 @@
7171
exportOutputs
7272
;
7373
in
74+
assert (
75+
inputs.cloud-hypervisor.rev != inputs.cloud-hypervisor-prev.rev
76+
|| throw "cloud-hypervisor and cloud-hypervisor-prev must differ (both are ${toString inputs.cloud-hypervisor.rev})"
77+
);
78+
assert (
79+
inputs.libvirt.rev != inputs.libvirt-prev.rev
80+
|| throw "libvirt and libvirt-prev must differ (both are ${toString inputs.libvirt.rev})"
81+
);
7482
exportOutputs (
7583
{
7684
self,

0 commit comments

Comments
 (0)