From cffaa1acbcbee68e120b51e5c395e4d16cdde393 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Mon, 4 Nov 2024 11:56:19 +0100 Subject: [PATCH] scripts.generate: fix update order Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- packages/scripts.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/scripts.nix b/packages/scripts.nix index 45708f875..6c4a7c02f 100644 --- a/packages/scripts.nix +++ b/packages/scripts.nix @@ -109,12 +109,13 @@ go generate ./... done < <(go list -f '{{.Dir}}' -m) - echo "Updating vendorHash of contrast.cli package" >&2 - nix-update --version=skip --flake legacyPackages.x86_64-linux.contrast - echo "Updating vendorHash of service-mesh package" >&2 - nix-update --version=skip --flake legacyPackages.x86_64-linux.service-mesh + # Notice: Order matters! Packages must be updated before their dependents. echo "Updating vendorHash of tdx-measure package" >&2 nix-update --version=skip --flake legacyPackages.x86_64-linux.tdx-measure + echo "Updating vendorHash of service-mesh package" >&2 + nix-update --version=skip --flake legacyPackages.x86_64-linux.service-mesh + echo "Updating vendorHash of contrast.cli package" >&2 + nix-update --version=skip --flake legacyPackages.x86_64-linux.contrast echo "Updating src hash of kata.kata-kernel-uvm.configfile" >&2 nix-update --version=skip --flake legacyPackages.x86_64-linux.kata.kata-kernel-uvm.configfile