From e1b0f282c4eb69c8d2a891d01bf25346ea43b7e0 Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Wed, 30 Oct 2024 16:36:36 +0100 Subject: [PATCH] autopush: run after install manifest is written --- lib/spack/spack/hooks/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/spack/spack/hooks/__init__.py b/lib/spack/spack/hooks/__init__.py index 0e7e3036928..a1a3622fca4 100644 --- a/lib/spack/spack/hooks/__init__.py +++ b/lib/spack/spack/hooks/__init__.py @@ -42,8 +42,9 @@ def _populate_hooks(cls): relative_names = list(list_modules(spack.paths.hooks_path)) - # Ensure that write_install_manifest comes last - ensure_last(relative_names, "absolutify_elf_sonames", "write_install_manifest") + # write_install_manifest should come after any mutation of the install prefix, and + # autopush should include the install manifest. + ensure_last(relative_names, "absolutify_elf_sonames", "write_install_manifest", "autopush") for name in relative_names: module_name = __name__ + "." + name