cli/manifest: opt-in flag gating transitive dependency resolution
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 8
- Forks
- 0
- Avg merge
- 6h 12m
- Merged PRs (30d)
- 19
Description
Summary
Phase 2 of #68 (depends on the design decision issue; independent of the resolver internals — can be developed in parallel against a stub resolver signature). Add the user-facing opt-in surface for transitive resolution, per the trust-model decision.
Scope
- Add the opt-in mechanism decided in the design sub-issue (e.g.
spm add --with-deps, and/or a manifest-level flag validated bysrc/schema.rs/schema/ai.schema.json). - Wire the flag through
src/cli.rscommand dispatch so it's threaded to wherever resolution is invoked (sync/add/update). - When the flag is off (default, if opt-in was chosen), transitive resolution must not run at all — nested
ai.jsonfiles are ignored, preserving current behavior exactly. - Tests: schema validation for the new manifest flag (if applicable), CLI argument parsing/dispatch tests in
tests/cli.rs.
Out of scope
The actual recursive resolution logic (separate sub-issue) — this issue only adds the on/off surface and threads it through.
Relevant code
src/cli.rs,src/manifest.rs,src/schema.rs,schema/ai.schema.json,tests/cli.rs
Part of #68.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the design decision sub-issue in #68, then inspect src/cli.rs, src/manifest.rs, src/schema.rs, schema/ai.schema.json, and tests/cli.rs. Implement the decided opt-in surface and thread it through the sync/add/update dispatch paths without implementing recursive resolution. Done means the flag is validated and parsed as applicable, CLI tests pass, and the default-off behavior preserves nested ai.json files as ignored.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100