'git' version not expanded in version-script
Metadata
Current evaluation
Request to expand 'git' version before running version-script so SNAPCRAFT_PROJECT_VERSION holds the real version. version-script is deprecated/removed in current snapcraft (only docs reference remains), so the feature no longer exists.
Suggested action: close stale
Reason: The issue is 3377 days old with zero comments and no maintainer interaction. The version-script feature it targets has been deprecated (commit 59ec3601b 'deprecations: add deprecation notice for version-script') and no longer appears in the codebase (only a docs migration note remains), so the original problem is no longer applicable to current snapcraft.
Impact:
15
Quick Win:
9.0
Staleness:
90
Complexity:
40
Confidence:
70
Support Request:
20
Issue body
If a snapcraft.yaml contains both version: git and a version-script:, then $SNAPCRAFT_PROJECT_VERSION is set to 'git' when the version-script is being executed. It would be useful if 'git' was expanded first, so I could use it when generating my version override.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.8-27b |
Impact:
15
Quick Win:
9.0
Staleness:
90
Complexity:
40
Confidence:
70
Support Request:
20
|
close stale | Request to expand 'git' version before running version-script so SNAPCRAFT_PROJECT_VERSION holds the real version. version-script is deprecated/removed in current snapcraft (only docs reference remains), so the feature no longer exists. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
20
Confidence:
85
Support Request:
10
|
close stale | Unexpanded git string passed to version-script instead of resolved version. Issue is over 9 years old with no maintainer interaction or comments. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
98
Complexity:
25
Confidence:
90
Support Request:
10
|
close stale | Feature request to expand 'git' version to actual commit hash before running version-script in snapcraft. Unlabelled, zero comments, inactive for over 9 years. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
98
Complexity:
45
Confidence:
90
Support Request:
15
|
close stale | Feature request to expand git version before running version-script in snapcraft.yaml. Issue is over 9 years old with no maintainer response or activity. | |
| qwen3.6-35b-moe-q4 |
Staleness:
95
Complexity:
20
Confidence:
85
Support Request:
10
|
close stale | Snapcraft does not expand 'git' to the actual commit hash when version-script is used, leaving $SNAPCRAFT_PROJECT_VERSION as literal 'git'. Unaddressed for ~9 years. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1812633 "version: git" can produce version strings too long for snapd | snapcraft (launchpad) | closed | The version: git feature was deprecated in favor of craftctl set version=... to prevent excessively long version strings exceeding snapd's 32-character limit. Users should use version-script: or the new control command instead. | |
| #1769519 Setting the snapcraft.yaml version field to 'git' produces undocumented and broken magic | snapcraft (launchpad) | open | Snapcraft 2.42 (2018): setting version: git in snapcraft.yaml substitutes a mangled git describe output; tags with invalid chars (e.g. underscore) yield an invalid version that snap refuses to install, with no error. No maintainer interaction in 8+ years. |