mishandled private git+ssh repo url
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Confirmed
|
High
|
Unassigned |
Bug Description
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:
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:/
snapcraft 7.2.8.post26+
Mind that "git+ssh: //git.launchpad .net.." is what launchpad provides as url to be used for the private repositories.
So it is a bit unfortunate that Launchpad and snapcraft do not agree on a valid git URL format.
It is also a regression in behaviour from base: core20