File 'version'

List of files in the charm project > version

When your charm is published to Charmhub, an attempt is made to automatically determine the version if there is metadata for a version control system in the path. In order, Charmhub checks for git, hg (Mercurial), and bzr (Bazaar). If a metadata path is found, one of the following commands is used to check for version information:

git describe --dirty --always
hg id -n
bzr version-info

If there is no version control metadata, Charmhub will look for a version file, which can be used to manually specify the version which should be displayed.

Finally, if all of these fail, the version will match the revision of your charm.


Last updated 20 days ago.