← Back to issue list

Set a charm version from `charmcraft.yaml`

View original Github issue

Metadata

Project
charmcraft
Number
#1790
Type
issue
State
open
Author
lengau
Labels
Created
2024-08-06 17:49:38+00:00
Updated
2025-08-15 15:17:55+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### What needs to get done 1. Accept a `version` field and relevant `adopt-info` in charmcraft.yaml. 2. Store the version somewhere in the output charm. This is blocked pending design discussions. Juju currently accepts a `version` file in the root of the charm - this file is a single line text file, and whatever text is there will be presented as the version. However it sounds like we may potentially want to move this field into `metadata.yaml` or elsewhere. Related: https://github.com/canonical/charmcraft/issues/37 ### Why it needs to get done Charms should be allowed to be versioned, not just by channel.

Evaluation history

No evaluation history available.