Real version in init.lua and require field in module.conf #17

Closed
opened 2026-11-18 15:12:39 +01:00 by michael · 1 comment
Owner

Goal

The module-manager reads the installed version of this core module from the
version field of its init.lua table (see DAW/daw-module-manager#31), and
checks the [requires.lua.<lib>] sections of this module.conf.

Acceptance criteria

  • version in init.lua is the real version, equal to VERSION, instead of <DAW_SED_REPLACE_VERSION>
  • every [requires.lua.<lib>] section of config/module.conf has a require field (e.g. require = daw.common)
  • make test and fragjan code . pass

Technical notes

  • Core modules have no make dist step; the value is maintained by hand with
    each release.
## Goal The module-manager reads the installed version of this core module from the `version` field of its `init.lua` table (see DAW/daw-module-manager#31), and checks the `[requires.lua.<lib>]` sections of this module.conf. ## Acceptance criteria - [ ] `version` in `init.lua` is the real version, equal to `VERSION`, instead of `<DAW_SED_REPLACE_VERSION>` - [ ] every `[requires.lua.<lib>]` section of `config/module.conf` has a `require` field (e.g. `require = daw.common`) - [ ] `make test` and `fragjan code .` pass ## Technical notes - Core modules have no `make dist` step; the value is maintained by hand with each release.
Author
Owner

Done 2026-11-18

init.lua carries version = "2.2.0", equal to VERSION, replacing the
make dist sentinel, and require("daw.berhtjan_cli").version returns it.
config/module.conf declares require = daw.common and
require = daw.berhtjan_core. The sentinel test is replaced by a test that
the field is a MAJOR.MINOR.PATCH string. No version bump.

fragjan code and make test (Lua 5.4 and 5.1) pass.

The field is kept by hand until bump and a check keep it in step with
VERSION (DAW/fragjan#158). Used by DAW/daw-module-manager#31.

## Done 2026-11-18 `init.lua` carries `version = "2.2.0"`, equal to `VERSION`, replacing the `make dist` sentinel, and `require("daw.berhtjan_cli").version` returns it. `config/module.conf` declares `require = daw.common` and `require = daw.berhtjan_core`. The sentinel test is replaced by a test that the field is a `MAJOR.MINOR.PATCH` string. No version bump. `fragjan code` and `make test` (Lua 5.4 and 5.1) pass. The field is kept by hand until `bump` and a check keep it in step with `VERSION` (DAW/fragjan#158). Used by DAW/daw-module-manager#31.
michael 2026-11-18 18:48:55 +01:00
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-modul-berhtjan-cli#17
No description provided.