Core18 base in build.snapcraft.io


#1

Hi,
I’d like to know if it’s now possible to use core18 in the build system.
If not if the build can be created with travis/launchpad to use core18.
I noticed that the gimp snap in snapcrafters has core18, so I was wondering how to use it.
Thanks


#2

You can target core18 by using launchpad.net buildd directly. You need to get your snap code into launchpad. Once the code is uploaded you need to navigate to the code repository in the browser and find the link that reads “Create snap package”. Select the series “Ubuntu Bionix, for Ubuntu Core 16”. Despite the name this will build a snap that is compatible with core18, so you need to include base: core18 in the snapcraft.yaml.


#3

Thanks! Good to know.
So the snap in question is on launchpad at the moment,
it’s the ubuntu-make snap
https://code.launchpad.net/~didrocks/+snap/ubuntu-make
at the moment it says ubuntu xenial.
If I just add core18 will it work? Or do I have to change to bionic as well?


#4

You’ll need to switch the build to “Ubuntu Bionic, for Ubuntu Core 16” if you want to use the core18 base snap so that it builds against the correct library versions. As I said you need to ensure you also include the base: core18 stanza in the snapcraft.yaml.


#5

I didn’t find any settings to do that on build.snapcraft.io?


#6

That’s why I said you need to use launchpad.


#7

Because support for targetting core18 in snapcraft will only be properly supported when 3.0 comes out. The components of what makes up core18 has only recently been frozen as well.


#8

@sergiusens now that snapcraft 3.0 has been released, is there any ETA for this?


`snapcraft` succeeds but automated build fails
#9

It is currently being worked on, the ETA can be provided by @cjwatson


#10

Yeah, I’m working on this at the moment: the main work consists of explicitly modelling some aspects of base snaps in Launchpad so that we can make appropriate decisions about how to dispatch builds of snaps that specify them, and then making the recipes that BSI creates stop specifying xenial. I can’t give an ETA yet, but I’m hoping it shouldn’t take longer than a few weeks to get it all assembled.


#11

base: core18 is now supported by build.snapcraft.io. Let us know if you have any problems!


#12

I’ve just started to get familiar with Launchpad because of this LMAO. Thanks a bunch!


How to build snap with python 3.6
#13

Great news!! What will happen to a user with a non core18 based snap if I update the snap?
Will it refresh automatically pulling the new base?


#14

If you update it to using core18 then your snap and its users will be migrated when you do new builds. If you just update your application without changing anything in the yaml to state core18 then your snap will carry-on building against core and your users will continue as they were before this change to the build service.