Errors when building via launchpad

Hello,

I have a git repository that is mirrored on launchpad, and a snap package configured to build from that repo when updates hit the master branch.

On my latest update the build fails, and I don’t understand why, I’m hoping someone can help. Running snapcraft cleanbuild on my 18.04 system builds fine.

The relevant part of the build log seems to be this:

Running build phase...
Skipping pull config (already ran)
Skipping pull lws (already ran)
Skipping pull mosquitto (already ran)
Failed to reuse files from previous run: The 'pull' step of 'script' is out of date:
The source has changed on disk.
To continue, clean that part's 'pull' step by running `snapcraft clean script -s pull`.

Snap on launchpad: https://code.launchpad.net/~mosquitto-dev/+snap/mosquitto
Failing build log: https://code.launchpad.net/~mosquitto-dev/+snap/mosquitto/+build/336024/+files/buildlog_snap_ubuntu_xenial_i386_mosquitto_BUILDING.txt.gz
Successful build log from previous version: https://code.launchpad.net/~mosquitto-dev/+snap/mosquitto/+build/322146/+files/buildlog_snap_ubuntu_xenial_i386_mosquitto_BUILDING.txt.gz

This appears to the source of your problems:

I ran into the exact same issue. See here:

The solution is to move your default_config.conf and launcher.sh files to a subdirectory named local.

1 Like

That does indeed fix it, I’m surprised I didn’t run into it before. Thanks for the tip.