← Back to issue list

Unable to set components version using craftctl set version

View original Github issue

Metadata

Project
snapcraft
Number
#5102
Type
issue
State
open
Author
stephensp
Labels
Status: Triaged Type: Enhancement
Created
2024-10-08 05:58:55+00:00
Updated
2025-04-24 16:12:56+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### What needs to get done component versions need to be settable during override-build , just like a snap. Currently it fails with the following error RuntimeError: 'override-build' in part 'nvidia-550-ko-comp' executed an invalid control API call: variable 'version' can be set only once. ### Why it needs to get done components need to be able to dynamically set their version based on revision numbers and other system settings. This is not possible if the version has to be hardcoded into the version field.

Evaluation history

No evaluation history available.