Add support for `craftctl get version`
Metadata
Current evaluation
Request to expose project version via craftctl get version (or env var) in override-* scriptlets. Recent triage notes CRAFT_PROJECT_VERSION env var already covers the use case; gap may be documentation. Awaiting maintainer confirmation on whether craftctl get version is still wanted.
Suggested action: keep open
Reason: The reporter followed up on 2026-03-18 asking maintainers to confirm whether craftctl get version is still aligned with intended design, and tagged @tigarmo and @asanvaq for visibility. A prior triage comment (2026-02-26) noted CRAFT_PROJECT_VERSION already exists in tests but may be undocumented, suggesting the actionable gap is documentation. The issue is active (last activity 166 days ago) and awaiting maintainer response, so it should remain open.
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.8-27b |
Impact:
40
Quick Win:
28.0
Staleness:
25
Complexity:
30
Confidence:
70
Support Request:
15
|
keep open | Request to expose project version via craftctl get version (or env var) in override-* scriptlets. Recent triage notes CRAFT_PROJECT_VERSION env var already covers the use case; gap may be documentation. Awaiting maintainer confirmation on whether craftctl get version is still wanted. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
65
Complexity:
20
Confidence:
60
Support Request:
10
|
needs triage | Feature request to expose project version via craftctl get version during build. Open, awaiting maintainer confirmation on design alignment and whether documentation updates suffice. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
45
Complexity:
30
Confidence:
80
Support Request:
10
|
keep open | Feature request to expose the project version via craftctl get version or an environment variable in rockcraft build scripts. Currently awaiting maintainer confirmation on design alignment before implementation. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
80
Complexity:
25
Confidence:
50
Support Request:
10
|
needs triage | Request to expose the project version via craftctl get version in rockcraft scripts. Triage notes the version is already available via an environment variable but undocumented. Author seeks design confirmation before implementation. |
Update history
No update history recorded yet.
Related work
-
Related To:
canonical/rockcraft#137
(confidence 40%)
A 2022 comment linked #137 as a duplicate, but a 2026 triage comment noted that #137 now refers to a different topic (layering breaking /lib symlink), so the cross-link may have been incorrect.
Related issues
No related issues found above the similarity threshold.