Skip to content

snap: derive version from git ref#194

Merged
hemanthnakkina merged 1 commit into
canonical:mainfrom
gboutry:chore/snap-version
Jun 16, 2026
Merged

snap: derive version from git ref#194
hemanthnakkina merged 1 commit into
canonical:mainfrom
gboutry:chore/snap-version

Conversation

@gboutry

@gboutry gboutry commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

Use snapcraft adopt-info to populate the snap version from the static release version and the current git ref at build time.

Append +dirty when tracked files differ from HEAD so local builds are visibly not from a clean checkout.

Use snapcraft adopt-info to populate the snap version from the
static release version and the current git ref at build time.

Append +dirty when tracked files differ from HEAD so local builds
are visibly not from a clean checkout.

Signed-off-by: Guillaume Boutry <guillaume.boutry@canonical.com>
@gboutry
gboutry force-pushed the chore/snap-version branch from 167a559 to 7004a19 Compare June 16, 2026 13:42
@hemanthnakkina
hemanthnakkina merged commit 5fc40f0 into canonical:main Jun 16, 2026
3 checks passed
@gboutry
gboutry deleted the chore/snap-version branch June 16, 2026 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants