install: consolidate dawio usage, remove direct io/os calls #8
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
bug
type
config
type
deployment
type
docs
type
enhancement
type
feature
type
handover
type
infrastructure
type
installation
type
maintenance
type
migration
type
research
type
security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
DAW/daw-module-manager#8
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?
Findings
1. Direct os.execute calls
os.execute("rm -rf " .. dir)andos.execute("rm -rf " .. temp_dir)violate the DAW architecture rule -- all shell execution must go through
out:run_rc().2. Direct io.* and print() calls
print_entry()usesprint()directly.prompt_install()usesio.write(),io.flush(),io.read()directly.Both functions receive no
outparameter and are not testable.Must use
dawio/sys.new()consistently.3. Repeated lazy require of daw.common.sys
require("daw.common.sys")is called multiple times inside functionbodies throughout the file. Should be a single top-level require.
4. Lazy require of daw.common.config_parser
require("daw.common.config_parser")insideread_require_path().Should be top-level.
5. _NAME declared after requires
Minor consistency issue -- all other files declare
_NAMEbeforethe require block.
Acceptance Criteria
os.executereplaced without:run_rc()print_entry()andprompt_install()acceptoutparameterrequire("daw.common.sys")consolidated at top levelrequire("daw.common.config_parser")moved to top level_NAMEmoved before requires