nikivdev/code · error

flow.toml not found. Run from your repo root.

Error message

flow.toml not found. Run from your repo root.

What it means

Error "flow.toml not found. Run from your repo root." thrown in nikivdev/code.

Source

Thrown at src/deploy.rs:847

        return tasks::run(TaskRunOpts {
            config: flow_path,
            delegate_to_hub: false,
            hub_host: std::net::IpAddr::from([127, 0, 0, 1]),
            hub_port: 9050,
            name: "deploy".to_string(),
            args: Vec::new(),
        });
    }

    bail!("No deploy task found. Add 'deploy-web' or 'deploy' to flow.toml.");
}

fn resolve_deploy_root(
    project_root: &Path,
    config: Option<&Config>,
) -> Result<(PathBuf, PathBuf, Config)> {
    let Some(flow_path) = find_flow_toml_from(project_root) else {
        bail!("flow.toml not found. Run from your repo root.");
    };

    let root = flow_path.parent().unwrap_or(project_root).to_path_buf();
    let cfg = if root == project_root {
        match config {
            Some(existing) => existing.clone(),
            None => crate::config::load(&flow_path)?,
        }
    } else {
        crate::config::load(&flow_path)?
    };

    Ok((root, flow_path, cfg))
}

fn find_flow_toml_from(start: &Path) -> Option<PathBuf> {
    let mut current = start.to_path_buf();
    loop {

View on GitHub (pinned to a747e741ae)

When it happens

Trigger: Thrown at src/deploy.rs:847 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of nikivdev/code@a747e741ae (2026-09-01). Data as JSON: /api/errors/64a78cdc9a908ba5. Report an issue: GitHub.