DashboardcraftloadConfigurationFromString workspaceDi…

loadConfigurationFromString workspaceDirectory

Category: gotcha
Confidence: 1.00
ID: 01a06b37-6375-7c22-8c90-06f4079fd7a4
Project ID: e16af391-c497-4837-b681-c849a5514499
Cross-project: No
Recalled in other projects: 0
Source session: 1Okgn0vvN7hdZmhlc
Created: 2026-09-04 06:59:47
Updated: 2026-09-04 06:59:47

Content

Trap: loadConfigurationFromString() appears equivalent to loading .craft.yml from disk, but workspace glob expansion historically called getConfigFilePath() and thus failed without a local config or used an unrelated one. Fix: thread an explicit workspace directory through workspace selection and glob resolution; prepare --config-from supplies Git’s repository top-level directory. This keeps remote configuration globs relative to the checked-out repository, not caller CWD discovery.

Move to: