-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
prepareCheckCache function: Add MkdirAll() to restic-cache directory if it doesn't exist #4805
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this issue! The code change itself is mostly fine, except for two minor issues.
However, the test case only seems to test existing behavior, but not the cache directory creating behavior added by this PR. Please fix that.
In addition, the PR must also be rebased, we don't want to merge merge commits. Ideally also squash the commits.
230217a
to
5287ce4
Compare
5287ce4
to
0271bb9
Compare
@MichaelEischer Please review the following two things again:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks!
What does this PR change? What problem does it solve?
Earlier, if the specified cache dir didn't exist, restic continued
check
command with cache disabled.Henceforth, it tries to create the cache directory.
Was the change previously discussed in an issue or on the forum?
It was previously discussed here: #4437
Checklist
changelog/unreleased/
that describes the changes for our users (see template).gofmt
on the code in all commits.