← Back to issue list

source-depth should propagate to git submodules

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1965792
Type
issue
State
open
Author
~itrue
Labels
Created
Updated
Closed

Current evaluation

Feature request: source-depth should also apply --depth to git submodule update so shallow clones don't fetch full submodule history (e.g. qt5). Unlabeled, zero comments, 1624 days old; craft-parts git source still lacks depth propagation to submodules.

Suggested action: needs triage

Reason: The issue has no labels, no assignee, and zero comments in 1624 days, showing no maintainer has ever assessed it. The underlying gap still exists in craft-parts: _update_submodules runs 'git submodule update --recursive --force' without any --depth flag, and _clone_new only passes --depth to the root clone, so the request remains valid and actionable rather than stale-irrelevant.

Impact: 50 Quick Win: 27.5 Staleness: 90 Complexity: 45 Confidence: 75 Support Request: 10

Issue body

Currently, specifying "source-depth: 1" only does a shallow checkout of the root repository. If there are any submodules, the entire submodule history is checked out. In a repository consisting largely of submodues (e.g. https://github.com/qt/qt5) this massively impacts the build time. Proposition: if "source-depth" is specified, "--depth" should also be added to the "git submodule update" command.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 50
Quick Win: 27.5
Staleness: 90
Complexity: 45
Confidence: 75
Support Request: 10
needs triage Feature request: source-depth should also apply --depth to git submodule update so shallow clones don't fetch full submodule history (e.g. qt5). Unlabeled, zero comments, 1624 days old; craft-parts git source still lacks depth propagation to submodules.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 15
Confidence: 85
Support Request: 5
close stale Feature request to propagate shallow clone depth to git submodules. Unaddressed for over four years with no maintainer interaction or labels.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 30
Confidence: 85
Support Request: 10
close stale Request to propagate source-depth to git submodules. Unlabelled, zero comments, and inactive for over 4 years with no maintainer engagement.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 20
Confidence: 85
Support Request: 10
close stale Feature request to propagate source-depth to git submodules. Issue is four years old with zero comments or maintainer engagement.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 45
Confidence: 85
Support Request: 10
close stale Feature request to propagate source-depth to git submodule checkouts to reduce build times. Untriaged and inactive for over four years with no maintainer response.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.