index: fix header path, remove direct os/io calls in update_index #9

Open
opened 2026-05-26 05:06:23 +02:00 by michael · 0 comments
Owner

Findings

1. Wrong prefix in header comment

src/daw/module_manager/index.lua should be index.lua (no src/ prefix).

2. Direct os.execute calls in update_index

Four os.execute calls: mkdir, rm -rf, and two cp.
Must be replaced with out:run_rc().
Related: DAW/daw-module-manager#8

3. Direct io.stderr:write calls in update_index

Two io.stderr:write(...) calls instead of out:write_err().
dawio / sys.new() is not used at all in update_index.

Acceptance Criteria

  • Header comment path corrected
  • os.execute calls replaced with out:run_rc()
  • io.stderr:write replaced with out:write_err()
  • dawio initialized consistently in update_index
  • Tests pass after changes
## Findings ### 1. Wrong prefix in header comment `src/daw/module_manager/index.lua` should be `index.lua` (no `src/` prefix). ### 2. Direct os.execute calls in update_index Four `os.execute` calls: mkdir, rm -rf, and two cp. Must be replaced with `out:run_rc()`. Related: DAW/daw-module-manager#8 ### 3. Direct io.stderr:write calls in update_index Two `io.stderr:write(...)` calls instead of `out:write_err()`. `dawio` / `sys.new()` is not used at all in `update_index`. ## Acceptance Criteria - [ ] Header comment path corrected - [ ] `os.execute` calls replaced with `out:run_rc()` - [ ] `io.stderr:write` replaced with `out:write_err()` - [ ] `dawio` initialized consistently in update_index - [ ] Tests pass after changes
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-module-manager#9
No description provided.