<div dir="ltr">Long term we want to have a pattern when the bundle is a directory with local charms in a directory next to the bundles.yaml file. We could not do this cleanly before the multi-series charms that are just getting out the door. I think that bundles with local charms will be suboptimal until we can get those bits to line up. <div><br></div><div>I don't think we want to be doing the file based urls, but to build a pattern that's reusable and makes sense across systems. Creating a standard pattern I think is the best path forward. </div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Mar 8, 2016 at 12:26 PM Martin Packman <<a href="mailto:martin.packman@canonical.com">martin.packman@canonical.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 05/03/2016, Ian Booth <<a href="mailto:ian.booth@canonical.com" target="_blank">ian.booth@canonical.com</a>> wrote:<br>
>><br>
>> How will bundles work which reference local charms? Will this work as<br>
>> expected where nova-compute is a directory at the same level as a bundle<br>
>> file?<br>
>><br>
>> ```<br>
>> series: trusty<br>
>> services:<br>
>> nova-compute:<br>
>> charm: ./nova-compute<br>
>> num_units: 2<br>
>> ```<br>
>><br>
><br>
> The above will work but not until a tweak is made to bundle deployment to<br>
> interpret a path on disk rather than a url. It's a small change. This would<br>
> be done as part of the work to remove the local repo support.<br>
<br>
Can we keep interpreting the the reference in the bundle as a url, but<br>
start supporting file urls? That seems neater than treating the cs:<br>
prefix as magic not-a-filename.<br>
<br>
The catch is that there's no sane way of referencing locations outside<br>
a base url.<br>
<br>
charm: file:nova-compute<br>
<br>
Works as a reference to a dir inside the base location, but:<br>
<br>
charm: file:../nova-compute<br>
<br>
Will not work as a reference to a sibling directory. And absolute file<br>
paths are pretty useless across machines.<br>
<br>
Martin<br>
<br>
--<br>
Juju-dev mailing list<br>
<a href="mailto:Juju-dev@lists.ubuntu.com" target="_blank">Juju-dev@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju-dev" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju-dev</a><br>
</blockquote></div>