Check: version in init.lua must equal the VERSION file #158
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/architecture
type
bug
type
config
type
deployment
type
docs
type/documentation
type
enhancement
type
feature
type
handover
type
infrastructure
type
installation
type
maintenance
type
migration
type
research
type
security
type/task
type/tech-debt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
DAW/fragjan#158
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?
Goal
Core libraries and core modules keep their real version by hand in the
versionfield of
init.lua(see DAW/daw-module-manager#31). A check reports an errorwhen that field differs from the
VERSIONfile of the repository.Acceptance criteria
init.luaversionandVERSIONis reported<DAW_SED_REPLACE_VERSION>is not an error for repositories that are not coremake testpassesOpen
Clarification 2026-11-18
The version in
init.luaof a core library or core module is the plainMAJOR.MINOR.PATCHofVERSION; a+hashsuffix is not expected there (thehash of a commit cannot be part of a file in that commit). The check compares
the two values as they are.
A repository whose
init.luacarries the sentinel<DAW_SED_REPLACE_VERSION>is a module built by
make dist; there the field is replaced at build time andis not part of this check.
Done 2026-11-20
The check is implemented as a new project-level primitive,
DAW/daw-modul-fragjan-check-valueequals(daw.fragjan.check.valueequals).It extracts a value from one file with a Lua pattern and compares it with a
value from a second file. If either file is unreadable, the check is skipped.
Used for
lua-libprojects, it compares theversionfield ininit.luawith
VERSION. Verified withfragjan code: a matching pair passes, adiffering pair (2.2.1 vs 2.2.2) reports an error, and a
lua-moduleproject(sentinel version) is not checked.
The primitive passes
make teston Lua 5.4 and 5.1 (43 tests).Installable via
fragjan modules install.