init.lua: carry the library version in a version field #63

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

Goal

require("daw.common").version returns the version of the library, so that the
module-manager can check [requires.lua.daw-lua-common] (see
DAW/daw-module-manager#31).

Acceptance criteria

  • init.lua has a version string field with the real version, equal to VERSION
  • the comment "version is dev in repo" in init.lua is corrected
  • a test reads version from the returned table
  • make test and fragjan code . pass

Technical notes

  • Core libraries have no make dist step; the value is maintained by hand with
    each release and is not the sentinel <DAW_SED_REPLACE_VERSION>.
  • No other change to init.lua.
## Goal `require("daw.common").version` returns the version of the library, so that the module-manager can check `[requires.lua.daw-lua-common]` (see DAW/daw-module-manager#31). ## Acceptance criteria - [ ] `init.lua` has a `version` string field with the real version, equal to `VERSION` - [ ] the comment "version is dev in repo" in `init.lua` is corrected - [ ] a test reads `version` from the returned table - [ ] `make test` and `fragjan code .` pass ## Technical notes - Core libraries have no `make dist` step; the value is maintained by hand with each release and is not the sentinel `<DAW_SED_REPLACE_VERSION>`. - No other change to `init.lua`.
Author
Owner

Done 2026-11-18

init.lua carries version = "2.2.1", equal to VERSION, and
require("daw.common").version returns it. A test checks that the field is a
MAJOR.MINOR.PATCH string. Released as 2.2.1 on main (tag v2.2.1).

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.common").version` returns it. A test checks that the field is a `MAJOR.MINOR.PATCH` string. Released as 2.2.1 on `main` (tag `v2.2.1`). `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:14:35 +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-lua-common#63
No description provided.