← Back to issue list

mishandled private git+ssh repo url

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#2008502
Type
issue
State
open
Author
~ondrak
Labels
—
Created
Updated
Closed
—

Current evaluation

Launchpad git+ssh URL mangling was fixed in craft-parts 1.19.1, but the confirmed open request now targets an unimplemented warning for git:// sources rejected by Launchpad builders.

Suggested action: keep open

Reason: The reported git+ssh mangling was fixed upstream in craft-parts 1.19.1 by craft-parts#408 (e442172e), and Snapcraft later moved beyond that dependency. However, mr-cal explicitly marked the issue confirmed and re-scoped it to warning about git:// sources on Launchpad; the current linter registry has no such rule. Keep it open for that unimplemented diagnostic.

Evaluated by: mr-cal-bot

Impact: 55 Quick Win: 21 Complexity: 40 Confidence: 86 Actionability: 65

Issue body

when using a private git repository from Launchpad, snapcraft fails to fetch the repo content as it tries to convert url to the local path name: test-snap base: core22 parts: private-repo: plugin: dump source: git+ssh://git.launchpad.net/~my-team/me/+git/my-project source-type: git source-branch: main source-depth: 1 prime: - -* This example will result in the following error: Failed to pull source: command ['git', 'clone', '--recursive', '--branch', 'upstream', '--depth', '1', 'file:///home/ubuntu/test-snap/git+ssh://git.launchpad.net/~my-team/me/+git/my-project', PosixPath('/home/ubuntu/host/test-snap/parts/private-repo/src')] exited with code 128. snapcraft 7.2.8.post26+git15d684d5

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 55
Quick Win: 21
Complexity: 40
Confidence: 86
Actionability: 65
keep open Launchpad git+ssh URL mangling was fixed in craft-parts 1.19.1, but the confirmed open request now targets an unimplemented warning for git:// sources rejected by Launchpad builders.
stealth/space-bunny-alpha
Impact: 25
Quick Win: 10
Complexity: 30
Confidence: 62
Actionability: 55
needs triage Launchpad's git+ssh:// private repo URL was mangled into a file:// local path. Fixed upstream in craft-parts 1.19.1; thread re-scoped by mr-cal to an unbuilt linter warning for git:// on Launchpad.
qwen/qwen3.6-35b-a3b
Impact: 60
Quick Win: 38
Complexity: 20
Confidence: 70
Actionability: 80
close resolved snapcraft fails to fetch private git repos using git+ssh:// URLs, incorrectly converting them to local file paths
qwen/qwen3.8-27b
Impact: 15
Quick Win: 13
Staleness: 85
Complexity: 15
Confidence: 60
Support Request: 80
close not a bug Snapcraft 7.2.8 treats a git+ssh:// source URL as a local file path when cloning a private Launchpad repo, so git clone fails. No maintainer response in over 3 years; the pip-style scheme is invalid for git, which only accepts ssh:// or user@host:path forms.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 35
Confidence: 85
Support Request: 10
close stale Snapcraft incorrectly converts private git+ssh URLs to local file paths, causing fetch failures. The report is over three years old with no maintainer engagement or updates.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 40
Confidence: 85
Support Request: 5
close stale Bug report detailing snapcraft incorrectly converting a git+ssh URL to a local file path during clone, causing a git clone failure. Unlabelled, zero comments, over 3 years old.
qwen3.6-35b-a3b-mtp-q6
Staleness: 90
Complexity: 40
Confidence: 75
Support Request: 5
close stale snapcraft fails to fetch private git+ssh repositories by incorrectly converting the URL to a local file path. The issue is over 3 years old with no maintainer interaction.

Update history

Date Change
created

Related work

  • Likely Fixed By: craft-parts#408 (confidence 96%)

    The upstream change added git+ssh handling for git sources and was released in craft-parts 1.19.1.

Related issues

No related issues found above the similarity threshold.