feat: expose library version at runtime #18

Open
opened 2026-05-25 17:16:47 +02:00 by michael · 1 comment
Owner

Goal

Expose the library version at runtime so host programs can report
which version of daw-lua-common is installed.

Context

daw-lua-common is embedded as a git submodule in host programs.
Currently no version is exposed in Lua -- the VERSION file exists
in the repo but is not loaded or returned by init.lua.

Questions to resolve

  • Source of truth at runtime: read VERSION file, or generate version.lua at build time?
  • How does make dist / merkwerk handle VERSION today?
  • Should M._version be set in init.lua, or a separate daw.common.version module?

See also

  • DAW/fragjan (uses daw-lua-common as submodule, host diagnostic use case)
## Goal Expose the library version at runtime so host programs can report which version of daw-lua-common is installed. ## Context daw-lua-common is embedded as a git submodule in host programs. Currently no version is exposed in Lua -- the VERSION file exists in the repo but is not loaded or returned by init.lua. ## Questions to resolve - Source of truth at runtime: read VERSION file, or generate version.lua at build time? - How does make dist / merkwerk handle VERSION today? - Should M._version be set in init.lua, or a separate daw.common.version module? ## See also - DAW/fragjan (uses daw-lua-common as submodule, host diagnostic use case)
Author
Owner

Not scheduled. Blocked on merkwerk.lua (which is meant to provide the version-reading logic from .version_history, last line) -- merkwerk.lua currently has known bugs and is not yet in use. Building a standalone stopgap here (e.g. reading VERSION directly) would duplicate work that merkwerk.lua should own once fixed. Revisit once merkwerk.lua is usable; not tied to a specific milestone until then.

Not scheduled. Blocked on merkwerk.lua (which is meant to provide the version-reading logic from .version_history, last line) -- merkwerk.lua currently has known bugs and is not yet in use. Building a standalone stopgap here (e.g. reading VERSION directly) would duplicate work that merkwerk.lua should own once fixed. Revisit once merkwerk.lua is usable; not tied to a specific milestone until then.
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#18
No description provided.