install: handle failed module-map / resource catalog regeneration after a successful install #17

Open
opened 2026-10-16 18:02:28 +02:00 by michael · 0 comments
Owner

Goal

Revisit warnings and errors in the install flow once berhtjan-cli is
migrated: a failed follow-up step after a successful install must not
only be a warning.

Background

install() and install_local() call regen_module_map() after the package
is verified. If gen-module-map.sh fails, that is only a [WARN] and the
install is reported as successful. The resource catalogs
(DAW/daw-modul-berhtjan-core#13) will be regenerated at the same point;
a conflict introduced by a new module (resource_conflict) or an
incomplete default language would then also end up as a warning while
the old catalogs stay active and the new module's texts are missing.

Scope

  • decide how loud a failed regeneration step is (module-map and
    resource catalogs), and what the user is told about the state
    (module installed, catalogs/map not updated)
  • plain-string errors and [WARN]/[ERROR] output go through the
    error/i18n migration of this repo
  • hook for the resource catalog regeneration next to regen_module_map()
  • no command for removing a module exists today; check whether the
    module-map and catalogs need regenerating after a manual removal

Notes

Waits for the berhtjan-cli migration; adjust together.

DAW/daw-modul-berhtjan-core#13

## Goal Revisit warnings and errors in the install flow once berhtjan-cli is migrated: a failed follow-up step after a successful install must not only be a warning. ## Background install() and install_local() call regen_module_map() after the package is verified. If gen-module-map.sh fails, that is only a [WARN] and the install is reported as successful. The resource catalogs (DAW/daw-modul-berhtjan-core#13) will be regenerated at the same point; a conflict introduced by a new module (resource_conflict) or an incomplete default language would then also end up as a warning while the old catalogs stay active and the new module's texts are missing. ## Scope - decide how loud a failed regeneration step is (module-map and resource catalogs), and what the user is told about the state (module installed, catalogs/map not updated) - plain-string errors and [WARN]/[ERROR] output go through the error/i18n migration of this repo - hook for the resource catalog regeneration next to regen_module_map() - no command for removing a module exists today; check whether the module-map and catalogs need regenerating after a manual removal ## Notes Waits for the berhtjan-cli migration; adjust together. ## Related DAW/daw-modul-berhtjan-core#13
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
DAW/daw-module-manager#17
No description provided.