← Back to issue list

Rebuild fails because of 'version' can be set only once

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#2161190
Type
issue
State
open
Author
~t-a-k
Labels
Created
Updated
Closed

Current evaluation

Incremental snapcraft pack fails with craftctl set version error due to craft-parts write-once restriction. Requires snapcraft clean. Unlabelled, 0 comments, awaiting triage.

Suggested action: needs triage

Reason: The issue reports a concrete build failure during incremental snapcraft pack caused by craft-parts' write-once restriction on project variables. It has no labels, assignees, or maintainer comments, so it requires initial triage to determine if this is a snapcraft state-management bug or expected behavior requiring documentation.

Impact: 50 Quick Win: 35.0 Staleness: 40 Complexity: 30 Confidence: 60 Support Request: 40

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
qwen3.6-35b-a3b-mtp-q6
Impact: 50
Quick Win: 35.0
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

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.