charmcraft publish-lib
exits with 0 even if publishing fails
#1981
Labels
Bug
Something isn't working
charmcraft publish-lib
exits with 0 even if publishing fails
#1981
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: