autopush: run after install manifest is written

This commit is contained in:
Harmen Stoppels 2024-10-30 16:36:36 +01:00
parent 4de5b664cd
commit e1b0f282c4

View File

@ -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