fix(compat): install the finder after the interrupted-update repair in hermes_bootstrap
This commit is contained in:
@@ -506,10 +506,6 @@ def _legacy_post_swap_invocation(argv: list[str]) -> tuple[Path, list[str]] | No
|
||||
# without this, ``pm`` is unimportable and the launch silently skips PM adoption.
|
||||
harden_import_path(str(_root))
|
||||
|
||||
from hermes_agent.compat import install as _install_compat
|
||||
|
||||
_install_compat()
|
||||
|
||||
|
||||
def _settle_interrupted_update() -> None:
|
||||
"""Put back the tree a killed ``hermes update`` left half-moved, before PM, launch preparation or
|
||||
@@ -546,6 +542,11 @@ def _settle_interrupted_update() -> None:
|
||||
|
||||
_settle_interrupted_update()
|
||||
|
||||
# After the repair above: a merge killed while writing hermes_agent/ must not keep the repair from running.
|
||||
from hermes_agent.compat import install as _install_compat
|
||||
|
||||
_install_compat()
|
||||
|
||||
|
||||
def _pin_launcher_home() -> None:
|
||||
"""A minted launcher (``hermes_cli._launchers``) pins ``HERMES_HOME`` to the install's default
|
||||
|
||||
Reference in New Issue
Block a user