mishandled private git+ssh repo url
Metadata
Current evaluation
No evaluation has been recorded for this issue yet.
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
No evaluation history available.