-
Notifications
You must be signed in to change notification settings - Fork 149
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
Use os.TempDir() for temporary directory in default path #158
Use os.TempDir() for temporary directory in default path #158
Conversation
As mentioned in #157, we plan to remove the default path in a future release and make it a required argument. |
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.
@wojas: Do you have objections to cleanup the default path calculation for now until we're ready to change how the rest-server is configured?
No, go ahead. It's just that having a default that eats your backups is not great anyway. |
I changed the code according to the review (except for the comment on the command line help section) :-) |
a933653
to
40bb1eb
Compare
I've rebased this pull request to the current |
40bb1eb
to
f952bc7
Compare
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. I've rebased the branch to the current master, squashed the commits and replaced "O.S." with "OS" ;-)
What is the purpose of this change? What does it change?
This pull request removes the hardcoded reference to
/tmp/restic
replacing with platform-specific path, retrieved usingos.TempDir()
stdlib function.Was the change discussed in an issue or in the forum before?
Issue #157
Checklist
os.TempDir()
is a builtin functionchangelog/unreleased/
that describes the changes for our users (template here)gofmt
on the code in all commits