git clone and Launchpad build system

Joseph Rushton Wakeling joseph.wakeling at
Sat Mar 18 21:11:36 UTC 2017

On 18/03/17 21:28, Joseph Rushton Wakeling wrote:
> On 18/03/17 14:46, Joseph Rushton Wakeling wrote:
>> Is there an issue with using git source for parts of snap packages when using
>> the Launchpad build system?  I'm having consistent build failures for this;
>> originally I tried switching from `git://` URLS to `https://`, but I'm still
>> seeing the same errors, see e.g.
> Still failing despite updating to make sure the `source-type` is explicitly
> specified as git.  The same snap package builds fine for me with a `snapcraft
> cleanbuild`.

A look a bit further back in the build log reveals what I think may be the 
problem: the submodules of one of the git repositories have their URLs specified 
using `git://` URLs:

Submodule 'druntime' (git:// registered 
for path 'runtime/druntime'
Submodule 'phobos' (git:// registered for 
path 'runtime/phobos'
Submodule 'tests/d2/dmd-testsuite' 
(git:// registered for path 
Cloning into 'runtime/druntime'...
fatal: unable to connect to Name or service not known

fatal: clone of 'git://' into submodule 
path 'runtime/druntime' failed

Are `git://` URLS genuinely not supported by the launchpad build system?  And if 
so, is there a chance this could be addressed?

More information about the Snapcraft mailing list