Channels 2.0 Implementation

That last table looks quite nice. We can improve it a bit further, still without breaking the format, by spacing:

channels: 
  latest/stable: 3.1.5      (46) 7MB  -
  latest/edge:   3.1+master (50) 10MB -

  3.1/stable:    3.1.5      (46) 7MB  -
  3.1/edge:      3.1+master (50) 10MB -

  3.0/stable:    3.0.17     (24) 7MB  -
  3.0/candidate: 3.0.17     (40) 7MB  -

  2.3/stable:    2.3.8      (22) 5MB  -
  2.3/candidate: 2.3.8      (39) 5MB  -

  ingest/stable: ingest-0.5 (12) 4kB  classic

Besides the benefits mentioned above, this also means the table shows the same string that people would be using in the –channel flag, which is a relevant win.

The versions in the table should be ordered semantically using the typical algorithm. Even if that’s not always right, it’ll be better than a pure lexicographical sort.

@chipaca We shoudn’t transpose the matrix unless we do that in conjunction with snapcraft, otherwise it’ll be uncomfortable to be switching the brain back and forth between the two.

2 Likes