← Back to issue list

Git source doesn't support submodules

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1536698
Type
issue
State
closed
Author
~kyrofa
Labels
—
Created
Updated
Closed

Current evaluation

Git source submodule support was implemented and merged in ubuntu-core/snapcraft PR #249 (merge commit 1984cb339), using recursive cloning and submodule updates on pull.

Resolution: closed resolved

Reason: The issue was resolved by PR #249, whose implementation commit 3ff0d4001 added Git submodule support; it was merged as 1984cb339. The change uses recursive cloning and updates submodules during pulls.

Evaluated by: mr-cal-bot

No scores available.

Issue body

When specifying a `source` that is a Git repository that utilizes submodules, Snapcraft can't build the result as it doesn't fetch/check out the submodules.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Git source submodule support was implemented and merged in ubuntu-core/snapcraft PR #249 (merge commit 1984cb339), using recursive cloning and submodule updates on pull.
stealth/space-bunny-alpha — closed resolved Git submodule support was added by canonical/snapcraft#249 through recursive cloning and submodule updates, merged as commit 1984cb339.
stealth/space-bunny-alpha — closed resolved Git source submodule support was added by merged PR #249, using recursive cloning and updating submodules on pull (merge commit 1984cb339).
stealth/space-bunny-alpha — closed resolved Git submodule support was added by merged PR #249 (commit 1984cb339), with recursive cloning and submodule updates on pull.
qwen/qwen3.6-35b-a3b — — Closed without resolution or comments. Git source submodule support remains unaddressed.
qwen/qwen3.6-35b-a3b — — Abandoned. Snapcraft does not fetch Git submodules during source builds, and the issue was closed without resolution or implementation.
qwen/qwen3.6-35b-a3b — — Snapcraft's inability to fetch Git submodules was abandoned after closure due to inactivity. No fix or workaround was implemented.
qwen3.6-35b-a3b-mtp-q6 — — Closed without implementation or discussion. The Git submodule fetching limitation remains unresolved, indicating the issue was abandoned.

Update history

Date Change
created

Related work

  • Likely Fixed By: ubuntu-core/snapcraft#249 (confidence 100%)

    The issue comment links directly to PR #249, and repository history confirms its merge commit 1984cb339 and implementation commit 3ff0d4001.

Related issues

Issue Project State Summary Similarity
#249 Git source: Support submodules. snapcraft merged Merged canonical/snapcraft#249 via 1984cb339, adding recursive Git cloning and submodule updates on pull to resolve LP #1536698.
86%
#1957767 no way to use non-recursive git source snapcraft (launchpad) closed Merged in snapcore/snapcraft#3629, adding configurable Git submodule fetching so non-recursive clones can be requested.
80%
#1640675 Add source option for git submodules snapcraft (launchpad) closed Feature request implemented: source-submodules added to git sources, merged as snapcraft PR #3629 (383c1f1ce) and craft-parts PR #169 (3891f255); shipped in Snapcraft 7 and 8. Maintainer closed the2016 Launchpad bug as done.
78%
#3635 sources: make submodule fetching configurable snapcraft merged Merged into snapcraft/7.0 as 4fabb9a1d, backporting #3629 to add configurable Git submodule fetching through source-submodules.
72%
#1694765 source-type: git uses --remote for submodules snapcraft (launchpad) closed Fixed by merged PR snapcore/snapcraft#1344 (commit a8500f718), removing --remote from Git submodule updates so superproject-recorded revisions are honored.
71%
#1979529 local git repositories cannot be cloned snapcraft (launchpad) closed Local Git sources became cloneable in Snapcraft 7.1.1; the fix was merged via snapcraft#3861 in commit 4481326d6.
70%