write_failed

Diagnostic `nanook::cli::write_failed`

Summary

failed to write `{0}`

Help

verify the path is writable and the parent directory exists

Details

When this fires

The CLI tried to write a file and std::fs::write failed. Common surfaces: nanook init writing the starter nanook.toml, nanook discover writing back into the config, and nanook plugins new dropping Cargo.toml / src/lib.rs into the scaffolded crate dir. The path in the message is what we tried to write.

What to check

Create the parent directory first, or write to a user-owned location. Retry under sudo for system paths.

mkdir -p /etc/nanook
nanook init --template /etc/nanook/nanook.toml