← Back to issue list

Are the version and revision the same?

View original Github issue

Metadata

Project
charmcraft
Number
#355
Type
issue
State
closed
Author
jamesbeedy
Labels
—
Created
Updated
Closed

Current evaluation

Question about the version/revision columns in `charmcraft status` output. Closed after maintainer facundobatista explained they are distinct fields; no code change.

Resolution: closed not a bug

Reason: It was a usage question, not a defect. Maintainer facundobatista answered on 2021-06-03 that revision is a Charmhub-assigned integer that increments on each charm upload, while version comes from the optional developer-maintained `version` file (revision is used as the version when that file is absent). No fixing PR or commit exists in the repository.

Evaluated by: mr-cal-bot

No scores available.

Issue body

<img width="841" alt="Screen Shot 2021-05-26 at 1 30 42 PM" src="https://user-images.githubusercontent.com/5590546/119726987-9ef7b280-be26-11eb-9bd3-182f292751c8.png"> Looking at the `charmcraft status slurmd` output I see the version and revision. Do we need both of these? Thanks

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed not a bug Question about the version/revision columns in `charmcraft status` output. Closed after maintainer facundobatista explained they are distinct fields; no code change.
stealth/space-bunny-alpha — closed not a bug Clarified that revision is a Charmhub-assigned upload counter, while version comes from the optional version file; revision is used as the version when omitted.
qwen3.6-35b-a3b-mtp-q6 — — Closed after maintainer clarified the distinction. Revision is an auto-incrementing integer assigned by Charmhub, while version is an optional developer-controlled text string. If the version file is absent, revision defaults to version.
qwen/qwen3.6-35b-a3b — — Closed. Maintainer clarified revision is an auto-incrementing Charmhub integer, while version is an optional developer text. If no version file exists, the revision number serves as the version.
qwen/qwen3.6-35b-a3b — — Resolved by clarifying version and revision differ. Revision is an auto-incrementing integer from Charmhub, while version is a developer-controlled text string. If missing, revision defaults as the version.
qwen3.6-35b-a3b-mtp-q6 — — Maintainer clarified version and revision differ. Revision is an auto-incrementing Charmhub upload counter, while version is an optional developer-controlled string. If missing, revision defaults to version. Closed as informational.

Update history

No update history recorded yet.

Related work

  • Related To: canonical/charmcraft#361 (confidence 70%)

    Another question about revisions in `charmcraft status` output, likewise closed as a usage question with no code change.

Related issues

Issue Project State Summary Similarity
#361 How to determine what resource revision is associated with a charm revision charmcraft closed Resolved as a usage question: `charmcraft status` shows the resource revision associated with a charm revision; no code change was needed.
71%