Dashboard › craft › discoverLocation root bypasses workspac…
01a08235-2af9-7c23-824b-ebd37ec2746b| Project | Hits | Last recalled |
|---|---|---|
| opencode-lore | 2 | 1d ago |
Chose returning { path: "." } immediately for an exact root input over validating workspaceNames first, because root publishing has no possible workspace classification and must work when Craft workspace discovery is unavailable. Trap: routing root through getWorkspaceNames() looks uniformly fail-closed, but a broken or unavailable craft workspace list blocks valid root releases unnecessarily. Fix: only exact "." bypasses discovery; every non-root path must still discover and validate workspace names, then fail closed on discovery errors. Input path validation remains upstream in detailsFromContext() before workflow location resolution.