<div dir="ltr">Yes, it'll be ignored, and the charm will be deployed normally.</div><div dir="ltr"><div><br><div class="gmail_quote"><div dir="ltr">On Thu, Mar 17, 2016 at 3:29 PM Ryan Beisner <<a href="mailto:ryan.beisner@canonical.com" target="_blank">ryan.beisner@canonical.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">This is awesome. What will happen if a charm possesses the flag in metadata.yaml and is deployed with 1.25.x? Will it gracefully ignore it?</div><div class="gmail_extra"><br><div class="gmail_quote"></div></div><div class="gmail_extra"><div class="gmail_quote">On Thu, Mar 17, 2016 at 1:57 PM, Nate Finch <span dir="ltr"><<a href="mailto:nate.finch@canonical.com" target="_blank">nate.finch@canonical.com</a>></span> wrote:<br></div></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>There is a new (optional) top level field in the metadata.yaml file called min-juju-version. If supplied, this value specifies the minimum version of a Juju server with which the charm is compatible. When a user attempts to deploy a charm (whether from the charmstore or from local) that has min-juju-version specified, if the targeted model's Juju version is lower than that specified, then the user will be shown an error noting that the charm requires a newer version of Juju (and told what version they need). The format for min-juju-version is a string that follows the same scheme as our release versions, so you can be as specific as you like. For example, min-juju-version: "2.0.1-beta3" will deploy on 2.0.1 (release), but will not deploy on 2.0.1-alpha1 (since alpha1 is older than beta3).<br></div><div><br></div><div>Note that, at this time, Juju 1.25.x does *not* recognize this flag, so it will, unfortunately, not be respected by 1.25 environments.</div><div><br></div><div>This code just landed in master, so feel free to give it a spin.</div><span><font color="#888888"><div><br></div><div>-Nate</div></font></span></div>
<br></blockquote></div></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">--<br>
Juju mailing list<br>
<a href="mailto:Juju@lists.ubuntu.com" target="_blank">Juju@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju</a><br>
<br></blockquote></div></div></blockquote></div></div></div>