rcreate action broken with Borg 1.4 #820
Labels
No labels
blocked
breaking
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
borgmatic-collective/borgmatic#820
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What I'm trying to do and why
#798 started calling Borg with the
BORG_EXIT_CODESenvironment variable set tomodern, which causes Borg 1.4 (only) to return different exit codes. It appears that the borgmaticrcreateaction, which callsborg infoto determine if the repository already exists, doesn't handle the new exit code (13) properly when the repository doesn't exit. The result is that theborg infocall causes borgmatic to error instead of continuing on to runborg rcreateas expected.This issue does not occur with other versions of Borg besides 1.4.
Steps to reproduce
Using Borg 1.4.0b1, run:
Actual behavior
Expected behavior
The
Repository /root/tmp/1.2.borg does not exist.message is expected, but then instead of an error, I'd expect borgmatic to continue on to runningborg rcreate.Other notes / implementation ideas
No response
borgmatic version
1.8.7 or main
borgmatic installation method
pipx install --editable
Borg version
1.4.0b1
Python version
3.11.6
Database version (if applicable)
No response
Operating system and version
Manjaro stable
Fixed in main. Will be part of the next release.
Released in borgmatic 1.8.8!