fix(dist): replace "dev" version sentinel with unambiguous placeholder #26

Closed
opened 2026-05-24 19:24:38 +02:00 by michael · 1 comment
Owner

Problem

version = "dev" as sed replacement target is fragile.
The string "dev" can appear anywhere in comments, strings or values.
The sed in make dist may replace wrong lines or fail silently.

Current pattern in Makefile:

sed -i 's/version  = "dev".*/version  = "$(FULL_VERSION)",/' init.lua

Solution

Replace "dev" with an unambiguous sentinel value:

version = "<DAW_SED_REPLACE_VERSION>",  -- replaced by make dist
sed -i 's/version = "<DAW_SED_REPLACE_VERSION>".*/version = "$(FULL_VERSION)",/' init.lua

Scope

All primitive repos (daw-modul-fragjan-check-*) and fragjan itself.
Migration needed when addressing this issue.

## Problem `version = "dev"` as sed replacement target is fragile. The string "dev" can appear anywhere in comments, strings or values. The sed in `make dist` may replace wrong lines or fail silently. Current pattern in Makefile: ``` sed -i 's/version = "dev".*/version = "$(FULL_VERSION)",/' init.lua ``` ## Solution Replace `"dev"` with an unambiguous sentinel value: ```lua version = "<DAW_SED_REPLACE_VERSION>", -- replaced by make dist ``` ```makefile sed -i 's/version = "<DAW_SED_REPLACE_VERSION>".*/version = "$(FULL_VERSION)",/' init.lua ``` ## Scope All primitive repos (daw-modul-fragjan-check-*) and fragjan itself. Migration needed when addressing this issue. ## Related - DAW/fragjan#23 (markdown primitive -- uses current "dev" pattern)
michael added this to the Basic Version milestone 2026-05-30 16:08:29 +02:00
Author
Owner

Completed

  • init-has-version rule updated in daw-lua-module pack
  • Now checks for <DAW_SED_REPLACE_VERSION> sentinel with expected: true
  • Migration of all module repos happens naturally during normal fragjan checks
## Completed - init-has-version rule updated in daw-lua-module pack - Now checks for <DAW_SED_REPLACE_VERSION> sentinel with expected: true - Migration of all module repos happens naturally during normal fragjan checks
michael 2026-05-31 15:01:57 +02: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/fragjan#26
No description provided.