Builds don't use "build-snaps" by default because of $PATH precedence

Bug #1887971 reported by Christopher Townsend
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
launchpad-buildd
New
Undecided
Unassigned

Bug Description

On Multipass, we've recently switched to using "build-snaps: [cmake]" in order to use a newer version of cmake in 18.04 based builds. This works fine when using snapcraft, but fails on launchpad-buildd.

Here is an example failure: https://snapcraft.io/multipass/builds/1046296

After a bit of research, I found this forum post: https://forum.snapcraft.io/t/build-service-fails-to-use-cmake-from-build-snap/17973

In short, $PATH has /snap/bin at the end, so launchpad-buildd will prefer the deb version of cmake.

Sure, we can force $PATH in our snapcraft.yaml, but I feel this behavior is inconsistent between snapcraft itself and launchpad-buildd.

Thanks!

Revision history for this message
Christopher Townsend (townsend) wrote :

I'm only entering this bug based on the recommendation in https://forum.snapcraft.io/t/build-service-fails-to-use-cmake-from-build-snap/17973/13, but I do think Snapcraft is ultimately the right place for this to be addressed.

Please close if you feel there is nothing that should be done here.

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.