Audit run_rc()/run() callers for correct cause vs. raw-output distinction #56
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-lua-common#56
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?
Problem
fs/dir.lua'sremove_dir_recursive()currently (pre-#48-fix) passessys:run_rc()'s second return value ascausein both branches:sys.lua'srun_rc()contract: on infrastructure failure it returnsnil, daw_error/v1(output is a valid cause there); on a completedprocess with non-zero exit, it returns
rc, stdout(output is rawprocess text, never a daw_error/v1, and must not be used as
cause).Found and fixed for fs/dir.lua's own two call sites during the
daw_i18n/v1 migration (DAW/daw-lua-common#48). This issue is to audit
whether other run_rc()/run() callers in the library make the same
mistake.
Scope
equivalent) distinction
Related
DAW/daw-lua-common#48