← Back to issue list

local git repositories cannot be cloned

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1979529
Type
issue
State
closed
Author
~ack
Labels
craft-1153
Created
Updated
Closed

Current evaluation

Local Git sources became cloneable in Snapcraft 7.1.1; the fix was merged via snapcraft#3861 in commit 4481326d6.

Resolution: closed resolved

Reason: Maintainer sergiusens confirmed that Snapcraft 7.1.1 on stable fixed the problem. PR #3861 was merged as commit 4481326d6.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Cannot do the following: parts: part: source: local/dir source-type: git A workaround is to use $SNAPCRAFT_PROJECT_DIR in an override-build for a part, E.g.     override-build: |       UI_REVISION=$(git rev-parse "$SNAPCRAFT_PROJECT_DIR/src/maasui/src" HEAD)       ...

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Local Git sources became cloneable in Snapcraft 7.1.1; the fix was merged via snapcraft#3861 in commit 4481326d6.
stealth/space-bunny-alpha — closed resolved Local Git repositories became cloneable in Snapcraft 7.1.1, released to stable via PR #3861 and merge commit 4481326d6.
stealth/space-bunny-alpha — closed stale Local Git sources could not be cloned. The matching Launchpad report was abandoned without a code fix, leaving the SNAPCRAFT_PROJECT_DIR override-build workaround.
qwen/qwen3.6-35b-a3b — — Abandoned without a code fix. The local git cloning failure remains unresolved, with the $SNAPCRAFT_PROJECT_DIR override-build directive serving as the accepted workaround.
qwen/qwen3.6-35b-a3b — — Abandoned. Local git repositories could not be cloned via source-type: git. A workaround using SNAPCRAFT_PROJECT_DIR in override-build was provided. No resolution was implemented.
qwen/qwen3.6-35b-a3b — — Closed without a documented fix or resolution. The reported limitation preventing local git repository cloning appears abandoned, with users relying on $SNAPCRAFT_PROJECT_DIR workarounds.
qwen3.6-35b-a3b-mtp-q6 — — Closed without resolution. The inability to clone local git repositories via source-type: git remains unfixed, with users relying on the provided $SNAPCRAFT_PROJECT_DIR override-build workaround.

Update history

Date Change
created

Related work

  • Likely Fixed By: snapcraft#3861 (confidence 99%)

    Merged commit 4481326d6 delivered the local Git cloning fix included in Snapcraft 7.1.1.

Related issues

Issue Project State Summary Similarity
#1516228 missing " git://" in the source crashes the snapcraft snapcraft (launchpad) closed Fixed in Snapcraft 0.5/master: a bare GitHub source no longer crashes and now reports "local source is not a directory" through pull-step handling (PR #448).
72%
#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.
72%
#1817907 building part with git source-commit not found in master fails snapcraft (launchpad) closed Fixed in snapcore/snapcraft#2968 (commit 3941e7918): Snapcraft now fetches a specified source-commit before checkout, including commits outside the default branch.
70%
#1536698 Git source doesn't support submodules snapcraft (launchpad) closed 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.
70%