deps: allow declared version overrides (e.g. beta releases) via configuration #20

Open
opened 2026-11-06 16:51:01 +01:00 by michael · 0 comments
Owner

Idea

By default a system dependency is unmet if it is absent, if its version cannot
be determined, or if it is below the declared minimum. An administrator or
developer may want to accept e.g. a PostgreSQL beta release or a distribution
build whose version cannot be determined.

Allow this through an explicit override that comes from above (configuration
passed in by the host, never read by the module itself):

  • the override is declared per dependency, so nothing is accepted by accident
  • while any override is active, a warning is shown at every start
  • the warning is on by default and can be switched off in the configuration

Open points

  • syntax of the override (per dependency: accept unknown version, replace
    the minimum, accept a named version)
  • scope: one dependency, one module, or global
  • how the warning reaches the user (depends on how the host receives events
    from modules)

Acceptance criteria

  • an override for a dependency makes check() accept the cases it names and
    nothing else
  • without an override the behaviour is unchanged
  • the result tells that an override was used (data on the check result)
  • the start warning is on by default and can be disabled by configuration
  • tests for each override kind and for the unchanged default
  • make test passes under Lua 5.1 and 5.4
## Idea By default a system dependency is unmet if it is absent, if its version cannot be determined, or if it is below the declared minimum. An administrator or developer may want to accept e.g. a PostgreSQL beta release or a distribution build whose version cannot be determined. Allow this through an explicit override that comes from above (configuration passed in by the host, never read by the module itself): - the override is declared per dependency, so nothing is accepted by accident - while any override is active, a warning is shown at every start - the warning is on by default and can be switched off in the configuration ## Open points - syntax of the override (per dependency: accept unknown version, replace the minimum, accept a named version) - scope: one dependency, one module, or global - how the warning reaches the user (depends on how the host receives events from modules) ## Acceptance criteria - [ ] an override for a dependency makes check() accept the cases it names and nothing else - [ ] without an override the behaviour is unchanged - [ ] the result tells that an override was used (data on the check result) - [ ] the start warning is on by default and can be disabled by configuration - [ ] tests for each override kind and for the unchanged default - [ ] make test passes under Lua 5.1 and 5.4
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#20
No description provided.