git clone and Launchpad build system

Joseph Rushton Wakeling joseph.wakeling at
Sat Mar 18 13:46:02 UTC 2017

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.

Command '['git', 'clone', '--recursive', '--branch', 'v0.17.3', 
'/build/ldc2/parts/ldc-bootstrap/src']' returned non-zero exit status 128
Traceback (most recent call last):
   File "/usr/share/launchpad-buildd/slavebin/buildsnap", line 202, in main
   File "/usr/share/launchpad-buildd/slavebin/buildsnap", line 139, in pull
   File "/usr/share/launchpad-buildd/slavebin/buildsnap", line 92, in 
     self.chroot(["/bin/sh", "-c", command], echo=echo)
   File "/usr/share/launchpad-buildd/slavebin/buildsnap", line 66, in chroot
     "/usr/bin/sudo", "/usr/sbin/chroot", self.chroot_path] + args)
   File "/usr/lib/python2.7/", line 541, in check_call
     raise CalledProcessError(retcode, cmd)
CalledProcessError: Command '['/usr/bin/sudo', '/usr/sbin/chroot', 
'/home/buildd/build-SNAPBUILD-28577/chroot-autobuild', 'linux64', '/bin/sh', 
'-c', 'cd /build/ldc2 && env LANG=C.UTF-8 
https_proxy= SNAPCRAFT_SETUP_CORE=1 
snapcraft pull']' returned non-zero exit status 1
Revoking proxy token...
RUN: /usr/share/launchpad-buildd/slavebin/scan-for-processes 
['scan-for-processes', 'SNAPBUILD-28577']
Scanning for processes to kill in build 
RUN: /usr/share/launchpad-buildd/slavebin/umount-chroot ['umount-chroot', 
Unmounting chroot for build SNAPBUILD-28577...
RUN: /usr/share/launchpad-buildd/slavebin/remove-build ['remove-build', 

The corresponding part of the snapcraft.yaml:

     source-tag: v0.17.3

More information about the Snapcraft mailing list