Defining multiple (external) snap packages in a single git repo

Mark Shuttleworth mark at ubuntu.com
Sat Mar 25 09:00:39 UTC 2017


On 24/03/17 23:18, Joseph Rushton Wakeling wrote:
> I've been discussing with some of the D language developers about how
> to move forward with snap packages for the core D tools.
>
> The D language project has a dedicated git repo for building packages
> for various targets [1] and the obvious place to define snap packages
> would be there.  However, would this be able to work with snap-package
> CI such as build.snapcraft.io or the Launchpad build tools?  They both
> seem rather biased towards the assumption that a single git repo
> defines a single snap package.
>
> An alternative would of course be for D's own CI tools to run
> `snapcraft cleanbuild` and upload the resulting packages to the
> store.  Any advice on how this could me made workable ... ? 

We could host multiple snapcraft.yamls in a repo, using some sort of
snapcraft.*.yaml scheme, for example.

So:

  snapcraft

     builds all snaps

  snapcraft snap foo

     builds snapcraft.foo.yaml

Mark




More information about the Snapcraft mailing list