deps: evaluate requires.lua.<lib> (min/max) of a module #31
Labels
No labels
coordination/cross-repo
coordination/needed
effort
large
effort
medium
effort
small
meta/duplicate
meta/planning
meta/wontfix
priority
high
priority
low
priority
medium
session
blocker
session
handover
session
next
status
blocked
status
done
status
in-progress
status
review
status
to-go
type
admin
type
bug
type
config
type
deployment
type
docs
type
enhancement
type
feature
type
handover
type
infrastructure
type
installation
type
maintenance
type
migration
type
research
type
security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
DAW/daw-module-manager#31
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
A module.conf can declare hard Lua library dependencies in
[requires.lua.<lib>]sections with min and max (this repository's ownconfig/module.conf does for daw-lua-common and daw-lua-net). The module-manager
does not evaluate them: deps.lua reads only
requires.system, andinstall/module_deps.lua only
requires.module;requires.lua.*is ignored.A module whose
requires.lua.<lib>range does not match the library version inuse is therefore installed without notice. Mixed versions are prevented only by
the version pins of the host program.
Scope
this issue before anything is implemented)
a mismatch is a daw_error/v1 error with its own resource_id and nothing is
changed (same behaviour as for requires.module)
Acceptance criteria
requires.lua.<lib>; tests firstfragjan code .andmake test(Lua 5.1 and 5.4) passDecision 2026-11-18: where the installed library version comes from
versionof thetable returned by
require(<module path>), the same way as for modules.[requires.lua.<lib>]gets the fieldrequire(e.g.require = daw.common), next tominandmax.make dist) carries its real version ininit.lua, maintained by hand andequal to its
VERSIONfile. The sentinel<DAW_SED_REPLACE_VERSION>is notused there, because nothing replaces it.
Follow-up issues are filed in daw-lua-common, daw-lua-net,
daw-modul-berhtjan-core, daw-modul-berhtjan-cli and fragjan.
Still to settle before implementing: what happens when
requireis missing in asection, and when the module has no readable
version(comparemodule_version_unreadablefor modules).Done 2026-11-18
installandupdatecheckrequires.luaof the registry entry before anythingis downloaded (
install/lib_deps.lua).versionfield of the table thatrequire(<require>)returns. A section[requires.lua.<lib>]names that Luamodule in its
requirefield, next tominandmax.library_dependencies_unmet; a section withoutrequireislibrary_require_missing; a library without a version string islibrary_version_unreadable. Nothing is changed in any of these cases.config/module.confnamesdaw.commonanddaw.net.fragjan codeandmake test(Lua 5.4 and 5.1) pass.Not part of this issue, tracked elsewhere:
versionfield ininit.luaof the libraries: DAW/daw-lua-common#63,DAW/daw-lua-net#15, DAW/daw-modul-berhtjan-core#27, DAW/daw-modul-berhtjan-cli#17
init.luaandVERSIONagree: DAW/fragjan#158requires.moduleandrequires.luainto theregistry entry; until it does, an entry carries no
requires.luaand nothingis checked.