Rebuild fails because of 'version' can be set only once
Metadata
Current evaluation
Incremental Snapcraft packing can fail when override-pull sets version again, requiring snapcraft clean; the report remains unlabelled and unanswered.
Suggested action: needs triage
Reason: The report provides a concrete second-pack sequence and full craftctl error, but it has no labels, maintainer response, reproducer project, or affected Snapcraft version. Source confirms the write-once project-variable behavior and contains a related craft-parts regression test, but no evidence proves this report is already resolved.
Evaluated by: mr-cal-bot
Impact:
50
Quick Win:
13
Complexity:
58
Confidence:
82
Actionability:
62
Issue body
oHi,
Among multiple problems preventing a rebuild without having to make a 'snapcraft clean', a new one appeared:
when making a 'snapcraft pack' over a previous one,
it can result in a fail because it considers snap version has already been set.
A 'snapcraft clean' is then required to build.
```
'override-pull' in part 'frame' failed with code 1.
Detailed information:
:: + '[' -z '' ']'
:: + new_snap_version=0.31.1
:: + craftctl set version=0.31.1
:: error:
:: Traceback (most recent call last):
:: File "/snap/snapcraft/current/lib/python3.12/site-packages/craft_parts/ctl.py", line 112, in main
:: ret = CraftCtl.run(cmd, args)
:: ^^^^^^^^^^^^^^^^^^^^^^^
:: File "/snap/snapcraft/current/lib/python3.12/site-packages/craft_parts/ctl.py", line 45, in run
:: _client(cmd, args)
:: File "/snap/snapcraft/current/lib/python3.12/site-packages/craft_parts/ctl.py", line 99, in _client
:: raise RuntimeError(message)
:: RuntimeError: 'override-pull' in part 'frame' executed an invalid control API call: variable 'version' can be set only once.
```
Thanks.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha |
Impact:
50
Quick Win:
13
Complexity:
58
Confidence:
82
Actionability:
62
|
needs triage | Incremental Snapcraft packing can fail when override-pull sets version again, requiring snapcraft clean; the report remains unlabelled and unanswered. | |
| stealth/space-bunny-alpha |
Impact:
48
Quick Win:
13
Complexity:
58
Confidence:
84
Actionability:
64
|
needs triage | A repeated snapcraft pack can fail in override-pull because cached state marks version as already set; snapcraft clean works around it. The report remains open, unlabelled, and untriaged. | |
| stealth/space-bunny-alpha |
Impact:
40
Quick Win:
14
Complexity:
48
Confidence:
82
Actionability:
67
|
needs triage | Incremental pack fails when override-pull sets the version a second time, requiring snapcraft clean; the open, unlabelled report has no maintainer response or confirmed root cause. | |
| qwen3.6-35b-a3b-mtp-q6 |
Impact:
50
Quick Win:
35
Staleness:
40
Complexity:
30
Confidence:
60
Support Request:
40
|
needs triage | Incremental snapcraft pack fails with craftctl set version error due to craft-parts write-once restriction. Requires snapcraft clean. Unlabelled, 0 comments, awaiting triage. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
25
Complexity:
45
Confidence:
85
Support Request:
5
|
needs triage | Build fails on subsequent runs without clean due to craft_parts rejecting duplicate version assignments via craftctl. Currently unlabelled and awaiting maintainer review. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
0
Complexity:
40
Confidence:
90
Support Request:
20
|
needs triage | Rebuild fails with 'version can be set only once' error when running 'snapcraft pack' without cleaning. No maintainer response yet. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
5
Complexity:
40
Confidence:
90
Support Request:
10
|
needs triage | snapcraft pack fails with a 'version' can be set only once error from craft-parts when rebuilding without cleaning. Requires manual clean to proceed. Awaiting maintainer triage. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Related To:
snapcraft (launchpad)#1831135
(confidence 93%)
A current spread test cites comment 10 of that issue and describes craft-parts double-setting variables such as version.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #5568 build: correctly set version of dev builds | snapcraft | open | Updates Snapcraft's development snap versioning, but the unreviewed two-file change has been inactive for 391 days and still has failing build and OSV-scanner checks. |