Skip to content
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

Update fails when current_exe's directory is not writable (even if current_exe is writable) #71

Open
alpire opened this issue Apr 7, 2021 · 0 comments

Comments

@alpire
Copy link
Contributor

alpire commented Apr 7, 2021

We're running into an issue where self update fails trying to write the tmp file in the std::env::current_exes directory. In our particular case, the std::env::current_exes directory is not writable, hence the failure. However, std::env::current_exe is writable, so it could in theory be updated.

It'd be nice if self_update could handle this case, perhaps by using /tmp if /tmp happens to be in the same filesystem as the binary being updated.

Related to #2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant