Failed to git clone if url contains git+ssh as prefix
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapcraft (Ubuntu) |
Fix Released
|
Undecided
|
Callahan Kovacs |
Bug Description
Hello,
This is Aristo from OEM Enablement team in Taiwan, I am trying to use snapcraft(version 7.2.8) to build a gadget snap, the following is part of the snapcraft.yaml
"""
u-boot:
plugin: nil
source: git+ssh:
source-type: git
source-depth: 1
source-branch: classic
"""
When I execute sudo snapcraft --destructive-mode, it will have this error
"""
Failed to pull source: command ['git', 'clone', '--recursive', '--branch', 'classic', '--depth', '1', 'file:/
"""
I am able to build the same gadget snap with 6.x/stable without issue
Thanks!
tags: | added: craft-1489 |
Hi @aristochen,
Thanks for the report. This is a regression introduced in snapcraft 7.
A fix has been committed and is scheduled to be release within the next week.
In the meantime, the workaround is to choose a single protocol (http, git, or ssh) instead of git+ssh
fix: https:/ /github. com/canonical/ craft-parts/ pull/321