Version numbers for snap packages

Kyle Fazzari kyle.fazzari at canonical.com
Thu Jan 26 00:17:46 UTC 2017



On 01/25/2017 03:56 PM, Joseph Rushton Wakeling wrote:
> Hello all,
> 
> Quick question about version numbering (as in, the `version:` field of
> `snapcraft.yaml`).  The logical choice here is to use the version of the
> app being packaged, but what's the recommended way to handle changes to
> the snap package alone that don't change the version of the underlying app?
> 
> Is a scheme like x.y.z-n advisable (where n is the revision number of
> the snap itself for this version of the app), or are there alternative
> suggestions?
> 
> More generally, what are recommended practices for setting the
> `version:` field of snap packages?

I personally use `version: <upstream version>snap1`. Then if I release
an update that is snapping the same version of upstream but has
snap-specific changes (wrappers, part changes, etc.) I can just release
`<same version>snap2`.

-- 
Kyle Fazzari (kyrofa)
Software Engineer
Canonical Ltd.
kyle at canonical.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20170125/323027e0/attachment.sig>


More information about the Snapcraft mailing list