rust-lang / rust-lang/cargo

Is there a way to skip some submodules?

Open
#4,247 15 comments 29 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-git A-manifest C-feature-request S-needs-design
Dominant language
Rust
Stars
15.5k
Forks
3k
Avg merge
23h 30m
Merged PRs (30d)
51

Description

As of 1.63 (#10717), cargo respects submodule.<name>.update = none though that doesn't help in some recursive submodule cases


Currently, cargo will populate all git submodule automatically and recursively. But sometimes not all submodules are needed, populate those unneeded modules (specially some large git repos) are just a waste of time. So is there a way to tell cargo to skip those submodules?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing Cargo's recursive submodule population and compare it with the existing submodule.<name>.update = none handling described in #10717. Done means users can skip selected submodules, including in recursive cases, with tests covering the configuration and resulting checkout behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, rust
Domain
build-system, cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.