Run snapcraft update before attempting a snap build

Bug #1599786 reported by Daniel Holbach
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
High
Colin Watson

Bug Description

It'd be good to run

  snapcraft update

before a build. This will update snapcraft with the list of current remote parts.

From https://launchpadlibrarian.net/271441376/buildlog_snap_ubuntu_xenial_amd64_qownnotes_BUILDING.txt.gz

Issue detected while analyzing snapcraft.yaml: Cannot find definition for part 'desktop/qt5'. It may be a remote part, run `snapcraft update` to refresh the remote parts cache
Traceback (most recent call last):
  File "/usr/share/launchpad-buildd/slavebin/buildsnap", line 194, in main
    builder.pull()
  File "/usr/share/launchpad-buildd/slavebin/buildsnap", line 135, in pull
    env=env)
  File "/usr/share/launchpad-buildd/slavebin/buildsnap", line 92, in run_build_command
    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/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
CalledProcessError: Command '['/usr/bin/sudo', '/usr/sbin/chroot', '/home/buildd/build-SNAPBUILD-1441/chroot-autobuild', 'linux64', '/bin/sh', '-c', 'cd /build/qownnotes && env LANG=C.UTF-8 https_proxy=https://snap-proxy.launchpad.net:3128 http_proxy=http://snap-proxy.launchpad.net:3128 SNAPCRAFT_LOCAL_SOURCES=1 snapcraft pull']' returned non-zero exit status 1

Related branches

Colin Watson (cjwatson)
Changed in launchpad-buildd:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Colin Watson (cjwatson)
Revision history for this message
Daniel Holbach (dholbach) wrote :
Revision history for this message
Colin Watson (cjwatson) wrote :

Oh. In that case I think I should revert my launchpad-buildd fix, because it's easier to fix this only in snapcraft. What do you think?

Revision history for this message
Colin Watson (cjwatson) wrote :

This was fixed in snapcraft 2.12.1 instead, so I've reverted the launchpad-buildd change.

affects: launchpad-buildd → snapcraft
Changed in snapcraft:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.