nikivdev/code · error

Env keys are only supported when creating a bundle.

Error message

Env keys are only supported when creating a bundle.

What it means

Error "Env keys are only supported when creating a bundle." thrown in nikivdev/code.

Source

Thrown at src/changes.rs:53

            print_current_diff()?;
        }
        Some(ChangesAction::Accept { diff, file }) => {
            apply_diff(diff, file)?;
        }
        None => {
            bail!(
                "Missing changes subcommand. Use: f changes current-diff | f changes accept <diff>"
            );
        }
    }
    Ok(())
}

pub fn run_diff(cmd: DiffCommand) -> Result<()> {
    match cmd.hash {
        Some(hash) => {
            if !cmd.env.is_empty() {
                bail!("Env keys are only supported when creating a bundle.");
            }
            trace(&format!("unroll bundle: {}", hash));
            unroll_bundle(&hash)
        }
        None => {
            let env_keys = normalize_env_keys(&cmd.env)?;
            trace(&format!("create bundle (env keys: {})", env_keys.len()));
            create_bundle(&env_keys)
        }
    }
}

fn repo_root() -> Result<PathBuf> {
    let output = Command::new("git")
        .args(["rev-parse", "--show-toplevel"])
        .output()
        .context("failed to run git rev-parse")?;
    if !output.status.success() {

View on GitHub (pinned to a747e741ae)

When it happens

Trigger: Thrown at src/changes.rs:53 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/05318e3f9419de84. Report an issue: GitHub.