fs: add shell-based fallback tier when lfs is unavailable #3
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#3
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?
Currently fs.lua hard-exits if luafilesystem (lfs) is not installed.
Add a shell-based fallback tier so fs.lua works without lfs,
similar to the json.lua (3-tier) and yaml.lua (2-tier) approach.
Proposed tiers
Scope
Shell fallback only needs to cover the basic operations:
read_attrs() can return a minimal subset or nil in shell tier.
Out of scope
Windows compatibility -- DAW targets OpenBSD, Debian, Arch only.
Notes
Low priority -- lfs is available on all supported platforms as a
package. This is a rainy-day quality-of-life improvement.
Refs: DAW/daw-lua-common#2
Decision 2026-07-19: proceeding with this as the concrete implementation of #7 Option B. Scheduled for milestone 2.1, not 2.0.0 -- lfs is available on all currently supported platforms as a package, so this is a resilience improvement, not a blocker for the current release.