<p dir="ltr"></p>
<p dir="ltr">On Aug 10, 2016 2:15 AM, "Didier Roche" <<a href="mailto:didrocks@ubuntu.com">didrocks@ubuntu.com</a>> wrote:<br>
><br>
> Le 09/08/2016 à 23:41, Joe Talbott a écrit :<br>
> > Dear Snapcrafters,<br>
><br>
> Hey Joe,<br>
> ><br>
> > The wiki introduced the concept of sub-parts and used namespacing to<br>
> > associate a list of sub-parts with a project-part. However the<br>
> > concept was ill-conceived and now needs to be removed. In essence,<br>
> > all parts should be top level parts. Each entry in the wiki should<br>
> > identify one or more parts from a snapcraft.yaml file that are<br>
> > considered to be useful to other snapcraft users. A current example<br>
> > of subparts might look like this:<br>
> ><br>
> > ---<br>
> > origin: <a href="https://github.com/josepht/snaptastic">https://github.com/josepht/snaptastic</a><br>
> > maintainer: Joe Talbott <<a href="mailto:joe.talbott@canonical.com">joe.talbott@canonical.com</a>><br>
> > description: Some fun parts<br>
> > project-parts: fun-part<br>
> > parts: [a, b, c]<br>
> ><br>
> > Which would produce parts ‘fun-part/a’, ‘fun-part/b’, and<br>
> > ‘fun-part/c’. The new approach should be:<br>
> ><br>
> > ---<br>
> > origin: <a href="https://github.com/josepht/snaptastic">https://github.com/josepht/snaptastic</a><br>
> > maintainer: Joe Talbott <<a href="mailto:joe.talbott@canonical.com">joe.talbott@canonical.com</a>><br>
> > description: Some fun parts<br>
> > parts: [fun-part, fun-part-a, fun-part-b, fun-part-c]<br>
> ><br>
> > Where the hierarchy is removed and each part is a top-level part. The<br>
> > part names will need to be changed in the snapcraft.yaml file as well.<br>
> ><br>
><br>
> Namespacing was really nice for things like desktop/ parts<br>
> (desktop/gtk3, desktop/gtk2, desktop/qt5, desktop/qt4,<br>
> desktop/glibonly). There is as well mqtt-paho/python2 and<br>
> pqtt-patho/python3.<br>
> A lot of existing snaps are using those already and I find it really sad<br>
> that we are going to break backward compatibility for a feature that was<br>
> prominently advocated for in our blog posts like<br>
> <a href="http://blog.sergiusens.org/posts/The-Snapcraft-Parts-Ecosystem/">http://blog.sergiusens.org/posts/The-Snapcraft-Parts-Ecosystem/</a>.<br>
> Developers prefer to work on their snap rather than fighting for keeping<br>
> it working with latest snapcraft/store, please keep that in mind.<br>
><br>
> I think at least a reasonable approach would be to have a transition<br>
> plan for a period of time backed into the tool. That means that<br>
> snapcraft needs to be able to detect namespaced parts, and suggests<br>
> corresponding new part name to use (as we only have 7 of them, that<br>
> seems reasonable to handle the mapping by hand). I think that will put a<br>
> nice precedent on how we care about developer experience, and try to<br>
> minimize the impact on everyone. Is there anything like this planned?<br></p>
<p dir="ltr">The plan would be to convert the wiki parts and their origins but to have a deprecation warning for any snapcraft.yaml using the namespaced part names and to have snapcraft automatically convert '/' to '-' during part loading. This should lessen the pain for developers and allow them to make plans to update their snapcraft.yaml files.</p>
<p dir="ltr">Thanks,<br>
Joe<br>
><br>
> Also, please do not break this feature before the parts are transitioned<br>
> to the new name scheme.<br>
><br>
> My 2 cents<br>
> Didier<br>
><br>
><br>
> --<br>
> Snapcraft mailing list<br>
> <a href="mailto:Snapcraft@lists.snapcraft.io">Snapcraft@lists.snapcraft.io</a><br>
> Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snapcraft">https://lists.ubuntu.com/mailman/listinfo/snapcraft</a><br></p>