windmill-labs/windmill · error
⚠️ wmill.yaml found in parent directory: ${relativePath}
Error message
⚠️ wmill.yaml found in parent directory: ${relativePath} What it means
Config-discovery notice in findWmillYaml: no wmill.yaml exists in the current directory, but one was found in an ancestor directory. Unless disabled via noCdToRoot, the CLI warns and changes the working directory to that config root so sync operations run against the intended workspace root.
Source
Thrown at cli/src/core/conf.ts:187
// Check if we've reached the filesystem root
const parentDir = dirname(currentDir);
if (parentDir === currentDir) {
break;
}
currentDir = parentDir;
}
// If wmill.yaml was found in a parent directory, warn the user and change working directory
if (
!GLOBAL_CONFIG_OPT.noCdToRoot &&
foundPath &&
resolve(dirname(foundPath)) !== resolve(startDir)
) {
const configDir = dirname(foundPath);
const relativePath = relative(startDir, foundPath);
log.warn(`⚠️ wmill.yaml found in parent directory: ${relativePath}`);
// Change working directory to where wmill.yaml was found
process.chdir(configDir);
log.info(`📁 Changed working directory to: ${configDir}`);
}
return foundPath;
}
export function getWmillYamlPath(): string | null {
return findWmillYaml();
}
let legacyConfigWarned = false;
export async function readConfigFile(opts?: { warnIfMissing?: boolean }): Promise<SyncOptions> {
const warnIfMissing = opts?.warnIfMissing ?? true;
try {View on GitHub (pinned to e474e8803c)
Solutions
- Run commands from the directory containing wmill.yaml to make behavior explicit
- Set noCdToRoot (GLOBAL_CONFIG_OPT) to keep the current working directory
- Move/duplicate wmill.yaml into the current directory if it should be its own workspace
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at cli/src/core/conf.ts:187 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of windmill-labs/windmill@e474e8803c (2026-09-03).
Data as JSON: /api/errors/beb6eb5f23c56098.
Report an issue: GitHub.