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

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

Goal

The module-manager reads the installed version of this core module from
require("daw.berhtjan_core").version (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 `require("daw.berhtjan_core").version` (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.1", equal to VERSION, and
require("daw.berhtjan_core").version returns it. config/module.conf
declares require = daw.common. A test checks that the field is a
MAJOR.MINOR.PATCH string. No version bump; the field is set to the target
version before the next release.

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.1"`, equal to `VERSION`, and `require("daw.berhtjan_core").version` returns it. `config/module.conf` declares `require = daw.common`. A test checks that the field is a `MAJOR.MINOR.PATCH` string. No version bump; the field is set to the target version before the next release. `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:52 +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-core#27
No description provided.