commands.article calls fs.abspath before checking path #162
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/architecture
type
bug
type
config
type
deployment
type
docs
type/documentation
type
enhancement
type
feature
type
handover
type
infrastructure
type
installation
type
maintenance
type
migration
type
research
type
security
type/task
type/tech-debt
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
DAW/fragjan#162
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?
Goal
The argument check comes before any use of
path.Reason
commands.articlecallsmod_fs.abspath(path)beforeif not path; found in DAW/fragjan#157.Scope
core/commands/article.luaAcceptance criteria
Refs DAW/fragjan#157
Summary
core/commands/article.lua: thepath requiredcheck now runs first, beforedaw.common.fsis loaded and beforemod_fs.abspath(path).test/test_commands_article.lua: the fakefs.abspathnow fails onnillike the real fs; new check thatabspathis not called when path is missing.Commits:
616d0b5(fix),91d9955(test).Tests
test_commands_article.lua16/16 passed.test/test_*.luarun directly): 31/42 files pass on 5.1 and 5.4, identical todevelopbefore the change. The 11 failing files fail ondeveloptoo (unrelated to this issue).make testcould not run in the cloud checkout:tools/run_tests.shis not in the repo, andtest/helpers.luais a symlink to a local path. A minimal stand-in forhelpers.summarizewas used outside the repo. Please confirm withmake testlocally.Branch
claude/issue-162(based ondevelop, no PR)Refs DAW/fragjan#162