snapcraft package.yaml generation could be more beautiful and more human friendly

Bug #1528878 reported by Alexander Sack
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
Wishlist
Joe Talbott
Snappy
Fix Released
Wishlist
Unassigned

Bug Description

look at how snapcraft transforms the service/binary fields into something very machinish here: https://bugs.launchpad.net/snappy/+bug/1528871 ...

i think investing a bit effort to make the outputted package.yaml to at best match the order of the elements the author used inthe snapcraft.yaml would be worthwhile.

If thats not possible at least ensure the dumper outputs name/exec aka start/description first for binaries and services first...

surely a wishlist, but if you look at the package.yaml from the bug above I am sure most will agree that its not very neat...

Revision history for this message
Alexander Sack (asac) wrote :

16:28 < asac> oh i think the real thing is that my stuff gets transformed from map style to list style... where the name is in the name: field... maybe we could just keep same style to make things less confusing (for me at least) with less effort. still think list approach for making binaries should look beautiful anyway...

Revision history for this message
Sergio Schvezov (sergiusens) wrote :

xenial's snappy and snapcraft will support the same map seen, but it will also be rather different:
https://docs.google.com/document/d/1U6k0R9NPOyrn6MN16naOEX1BJ-BBzU6qHxMB4Ep_49w/edit#heading=h.f7k67ppnm94

Changed in snapcraft:
importance: Undecided → Wishlist
Changed in snappy:
importance: Undecided → Wishlist
Changed in snapcraft:
status: New → Triaged
Revision history for this message
Michael Vogt (mvo) wrote :

Snappy 16 implements the new "apps" yaml key which should give you the nice output you want.

Changed in snappy:
status: New → Fix Released
Changed in snapcraft:
assignee: nobody → Joe Talbott (joetalbott)
Changed in snapcraft:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.