← Back to issue list

fix: exit with 0 if re-publishing the same library

View original Github issue

Metadata

Project
charmcraft
Number
#2106
Type
pull request
State
merged
Author
lengau
Labels
Created
Updated
Closed

Current evaluation

Merged fix preventing errors when re-publishing identical library versions. Returns exit code 0 without creating duplicate revisions, resolving #1981. Approved by three reviewers and passed CI.

Suggested action:

No scores available.

Issue body

This takes care of the edge case where you want to re-publish the same library version with the same content. In this case we don't create a new revision on the store, but we also don't cause an error. Changelog link: https://canonical-charmcraft--2106.com.readthedocs.build/en/2106/reference/changelog/#id1 Fixes #1981

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged fix preventing errors when re-publishing identical library versions. Returns exit code 0 without creating duplicate revisions, resolving #1981. Approved by three reviewers and passed CI.
qwen3.6-35b-a3b-mtp-q6 Merged to resolve #1981. The change ensures the command exits with code 0 when re-publishing an identical library version, suppressing unnecessary revision creation and preventing errors for identical content.
qwen3.6-35b-a3b-mtp-q6 Merged fix ensuring re-publishing identical library content exits with code 0 without creating a new revision. Resolves the previous error for duplicate publishes and closes #1981.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#2042 fix(publish-lib): exit with status 1 on error charmcraft merged Merged to fix publish-lib exiting with status 1 on error. Approved by two reviewers, passed CI, and modified two files (+46/-1). Resolves #1981.
80%