<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Nov 5, 2015 at 11:48 AM, Mark Shuttleworth <span dir="ltr"><<a href="mailto:mark@ubuntu.com" target="_blank">mark@ubuntu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span>On 05/11/15 15:15, Ted Gould wrote:<br>
> What I think that we need then is an explicit key in the snapcraft.yaml<br>
> for setting the release that the build is targeting. This way we can<br>
> match the package list of that release. I think that this could be an<br>
> item in the frameworks list, but I think it's more important than that<br>
> and should get its own key. Proposing:<br>
> ubuntu: 16.04<br>
<br>
</span>Something like this would also be very useful for a "snapcraft<br>
cleanbuild" which makes a fresh container of the appropriate series, and<br>
does the build.</blockquote><div><br></div><div>According to the spec, we already have a 'target' key for snapcraft.yaml.<br><br><span style="font-size:14.6667px;font-family:"Ubuntu Mono";color:rgb(34,34,34);background-color:rgb(255,255,255);font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">target: ubuntu-core devel</span><br><br> We may want to revise this, including the proposed 'grade' keyword and the release, does this work?<br><br></div><div>target: ubuntu-core 16.04<br></div><div>grade: devel<br></div><div><br>I was thinking of maybe going in a different direction and using lxc/lxd internally in snapcraft to drive builds. This thread forces my hand to bring this up sooner than I wanted.<br><br></div><div>But 'target' would determine where to bring 'stage-packages' from, 'build-packages' would be installed on the container only. This should work transparently work for when Ubuntu Personal starts ramping up too.<br><br> And of course provide an option to not use lxc/lxd to build locally.<br></div></div></div></div>