scaffold_nanook_source_conflict

Diagnostic `nanook::cli::scaffold_nanook_source_conflict`

Summary

`--nanook-path` and `--nanook-git` are mutually exclusive

Help

pass at most one of --nanook-path, --nanook-git, or neither (crates.io default)

Details

When this fires

nanook plugins new got both --nanook-path and --nanook-git, which would produce a Cargo.toml with two contradictory sources for nanook-plugin. Cargo would reject that anyway, so we bail early with a clearer message.

What to check

Pick at most one source. Path beats git beats crates.io default:

# local checkout
nanook plugins new my_thing --kind collector --nanook-path ../nanook/crates/nanook-plugin

# git revision
nanook plugins new my_thing --kind collector --nanook-git https://github.com/you/nanook.git

# crates.io (default, no flag)
nanook plugins new my_thing --kind collector

If you need a specific crates.io version, use --nanook-version instead.