Host: answer the catalog build question of the module-manager before install and update #151

Open
opened 2026-11-15 12:54:06 +01:00 by michael · 0 comments
Owner

Goal

The host answers the question of the module-manager "can you build the
resource catalog with this module?" with yes or no (and the reason), so that
an install or update only counts as done when the catalog can be built.

Background

Decision in DAW/daw-module-manager#17: a module without texts is not usable, so
a failed catalog build is a hard error and the operation is aborted without
changes. The module-manager does not know the catalog build; only the host
does (core/resources/catalogs.lua build(), scripts/gen-resources.lua).

Scope

  • A function the host hands to the module-manager in opts (provisional, to be
    replaced by an event once a delivery mechanism exists).
  • The module-manager gives the path of the texts of the staged module. The
    function builds the catalogs probe-wise with this additional source (the
    module is not installed yet) and answers yes, or no with the reason as
    daw_error/v1 (e.g. resource_conflict, incomplete default language).
  • A probe changes nothing: no generation is activated.
  • After yes and after the module is in place, the real build and activation
    happen as today.
  • Asked for install and update, not for remove.

Acceptance criteria

  • The probe builds with the staged module as additional source and does
    not activate a generation.
  • Conflict or incomplete default language: answer no with the cause chain.
  • The host wires the function into the module-manager calls of install and
    update; remove does not ask.
  • Tests for the probe (yes, conflict, incomplete default language) and for
    the wiring.
  • The function is marked provisional.

Refs: DAW/daw-module-manager#17, DAW/fragjan#150

## Goal The host answers the question of the module-manager "can you build the resource catalog with this module?" with yes or no (and the reason), so that an install or update only counts as done when the catalog can be built. ## Background Decision in DAW/daw-module-manager#17: a module without texts is not usable, so a failed catalog build is a hard error and the operation is aborted without changes. The module-manager does not know the catalog build; only the host does (core/resources/catalogs.lua build(), scripts/gen-resources.lua). ## Scope - A function the host hands to the module-manager in opts (provisional, to be replaced by an event once a delivery mechanism exists). - The module-manager gives the path of the texts of the staged module. The function builds the catalogs probe-wise with this additional source (the module is not installed yet) and answers yes, or no with the reason as daw_error/v1 (e.g. resource_conflict, incomplete default language). - A probe changes nothing: no generation is activated. - After yes and after the module is in place, the real build and activation happen as today. - Asked for install and update, not for remove. ## Acceptance criteria - [ ] The probe builds with the staged module as additional source and does not activate a generation. - [ ] Conflict or incomplete default language: answer no with the cause chain. - [ ] The host wires the function into the module-manager calls of install and update; remove does not ask. - [ ] Tests for the probe (yes, conflict, incomplete default language) and for the wiring. - [ ] The function is marked provisional. Refs: DAW/daw-module-manager#17, DAW/fragjan#150
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/fragjan#151
No description provided.