-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
charmcraft publish-lib
exits with 0 even if publishing fails
#1981
Comments
Thank you for reporting us your feedback! The internal ticket has been created: https://warthogs.atlassian.net/browse/CRAFT-3830.
|
Hey @lengau, if we try to A few options we thought about:
|
canonical/charmcraft#1981 Signed-off-by: Luca Bello <36242061+lucabello@users.noreply.github.com>
canonical/charmcraft#1981 Signed-off-by: Luca Bello <36242061+lucabello@users.noreply.github.com>
@lucabello Ahh yes - it shouldn't be erroring out if you're trying to republish the same version with the same content. That should be considered a no-op, but successful. |
Bug Description
Currently
charmcraft publish-lib
correctly fails the library push if something's wrong with LIBPATCH (e.g., LIBPATCH is not bumped, going back, etc). However, the exit of the command is always0
.This is a problem especially in CI, where a "publish libraries" step will never fail (because of the 0 exit code), and thus is undetectable.
To Reproduce
LIBPATCH
toLIBPATCH-1
charmcraft publish-lib
on that libraryEnvironment
charmcraft 3.2.2.post72+g3a094837 (3.x/edge) (but you can reproduce this with any version)
charmcraft.yaml
Relevant log output
The text was updated successfully, but these errors were encountered: