← Back to issue list

meta: version from git support.

View original Github issue

Metadata

Project
snapcraft
Number
#1260
Type
pull request
State
merged
Author
sergiusens
Labels
—
Created
Updated
Closed

Current evaluation

Merged PR #1260 in commit 1a936f40c, adding version: git support so Snapcraft derives project versions from Git tags.

Resolution: closed resolved

Reason: PR #1260 was approved and merged as commit 1a936f40c. The change derives versions from Git tags and improves handling when the repository or tags are unavailable.

Evaluated by: mr-cal-bot

No scores available.

Issue body

If `version: git` is set, snapcraft will determine the version using git and its tags. Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged PR #1260 in commit 1a936f40c, adding version: git support so Snapcraft derives project versions from Git tags.
stealth/space-bunny-alpha — closed resolved Merged PR #1260 added version: git support, deriving versions from Git tags and improving errors for missing repositories or tags.
qwen/qwen3.6-35b-a3b — — Merged. Added version: git support to snapcraft, allowing version determination via git tags. Fixed git repository error messages, suppressed unhelpful warnings when no tags exist, and improved error handling. Approved by reviewers and merged after addressing feedback.
qwen3.6-35b-a3b-mtp-q6 — — Merged. Implemented version: git support in snapcraft to derive versions from git tags. Resolved fatal git errors when a repository or tags are missing. Approved with a suggestion to improve error messaging for the version field.

Update history

No update history recorded yet.

Related work

  • Related To: snapcraft#1281 (confidence 90%)

    Follow-up PR #1281, merged as 1aeb1e3e6, switched core project version handling to version: git.

Related issues

Issue Project State Summary Similarity
#3779 meta: handle version git snapcraft merged Merged PR #3779 as cde2c51c5, adding support for version: git so snap versions come from git describe --dirty, with unit and spread coverage.
81%
#396 build: set version from git rockcraft merged Merged PR #396 as commit 2ef84cb8, adding Git-derived versioning, snapcraft.yaml adopt-info, and relocating overlay initialization to the lifecycle service.
77%
#2147 recording: expose the version of snapcraft snapcraft merged Merged PR #2147 via commit a5cf4de4c, adding the Snapcraft version used to build each snap to manifest.yaml.
71%
#6389 docs: fix version in Snapcraft 9 snapcraft merged Merged PR #6389 (commit 7b092076d) fixed Snapcraft 9 docs versioning: builds show major.minor, while latest shows dev.
71%
#1185 repo: add version support for build-packages snapcraft merged Merged build-package version support in snapcraft#1185 (commit 0405cb87e); follow-up 8eb2eb6 restored package version checks lost during a rebase.
71%
#1789695 move to new version setting snapcraft (launchpad) closed Snapcraft migrated from "version: git" to custom set-version handling in merged PR #2230 (commit e1b59b75b), completing the planned version-setting change.
70%