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

Commit 6ea229a

Browse files
committed
flake: break cyclic dependencies to avoid inflating flake.lock
On-behalf-of: SAP julian.schindel@sap.com Signed-off-by: Julian Schindel <julian.schindel@cyberus-technology.de>
1 parent 0d64932 commit 6ea229a

2 files changed

Lines changed: 30 additions & 188 deletions

File tree

‎flake.lock‎

Lines changed: 24 additions & 188 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎flake.nix‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
libvirt.inputs.cloud-hypervisor.follows = "cloud-hypervisor";
1616
# Break the chain of cyclic dependencies:
1717
libvirt.inputs.libvirt-tests.inputs.libvirt.follows = "libvirt";
18+
libvirt.inputs.libvirt-tests.inputs.libvirt-prev.follows = "libvirt-prev";
1819
libvirt.inputs.nixpkgs.follows = "nixpkgs";
1920

2021
# cloud-hypervisor.url = "git+file:<path/to/cloud-hypervisor>";
@@ -28,6 +29,11 @@
2829
# Previous release of libvirt to match cloud-hypervisor's previous version.
2930
libvirt-prev.url = "git+https://github.com/cyberus-technology/libvirt?ref=refs/tags/gardenlinux-release-26-03-31&submodules=1";
3031
libvirt-prev.inputs.cloud-hypervisor.follows = "cloud-hypervisor-prev";
32+
# Break the chain of cyclic dependencies:
33+
libvirt-prev.inputs.libvirt-tests.inputs.libvirt.follows = "libvirt-prev";
34+
# TODO: The following line MUST be uncommented once the previous release contains a `flake.nix` with `libvirt-prev` input.
35+
# libvirt-prev.inputs.libvirt-tests.inputs.libvirt-prev.follows = "libvirt-prev";
36+
libvirt-prev.inputs.nixpkgs.follows = "nixpkgs";
3137

3238
edk2-src.url = "git+https://github.com/cyberus-technology/edk2?ref=gardenlinux&submodules=1";
3339
edk2-src.flake = false;

0 commit comments

Comments
 (0)