Question about using the git version of a program

Hi,

I created a snap for a terminal program I like, mainly for my own use. :slight_smile:

At the time I created the snap, the most recent release was made in 2015. The git version had some fixes in it that the old release didn’t, so I used the git version. Since the beginning of the year, there have been a couple of releases, but the version number on the snap has not changed. It still says 0+git.73b81d4.

I have two questions: a) What does 0+git.73b81d4 refer to? b) How can I tell if the snap is grabbing the most recent version of the program?

Here is the link to my snap yaml: https://github.com/JohnBlood/dosage/blob/master/snap/snapcraft.yaml .

Thanks

Hi @johnblood, have a look at the manpage for git describe, that’s where the string comes from.

Simplifying a lot, it is <most recent tag>[+git.[<commits since tag>.]<commit>].

The actual code generating it:

1 Like