Skip to content

snap: derive version from git ref#195

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

snap: derive version from git ref#195
hemanthnakkina merged 1 commit into
canonical:stable/2025.1from
gboutry:chore/snap-version-2025.1

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.

(cherry picked from commit 7004a19)

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>
(cherry picked from commit 7004a19)
@gboutry
gboutry force-pushed the chore/snap-version-2025.1 branch from c5d7195 to 6213de6 Compare June 16, 2026 13:45
@hemanthnakkina
hemanthnakkina merged commit a76e78f into canonical:stable/2025.1 Jun 16, 2026
3 checks passed
@gboutry
gboutry deleted the chore/snap-version-2025.1 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