meta: handle version git
Metadata
Current evaluation
Merged PR #3779 as cde2c51c5, adding support for version: git so snap versions come from git describe --dirty, with unit and spread coverage.
Resolution: closed resolved
Reason: PR #3779 was merged into main by commit cde2c51c5, implementing Git-derived project versions and corresponding tests.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Add special handling for projects with `version: git` so that the
snap version is set to the result of `git describe --dirty`.
Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com>
- [x] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)?
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [ ] Have you successfully run `make lint`?
- [ ] Have you successfully run `pytest tests/unit`?
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #3779 as cde2c51c5, adding support for version: git so snap versions come from git describe --dirty, with unit and spread coverage. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged into main as cde2c51c5, adding support for version: git to set the snap version from git describe --dirty. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged into main. Adds special handling for projects using version: git by setting the snap version to git describe --dirty output. Approved by a reviewer, rebased on main, and updated with test fixes prior to merging. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged implementation for handling version: git in project metadata, setting the snap version to git describe --dirty. Updated with amended verification, unit tests, and rebased on main prior to merge. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1260 meta: version from git support. | snapcraft | merged | Merged PR #1260 in commit 1a936f40c, adding version: git support so Snapcraft derives project versions from Git tags. | |
| #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. |