You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This package works pretty well, thanks for developing it !
But whenthe binary is in a folder that requires admin/root rights to write in like /usr/bin/ or in windows' programs folder, the update fails. Here is the error I get on linux : Error occurred while updating binary: open /usr/bin/.hatt.new: permission denied (the name of my program is hatt)
I was wondering how this issue should be addressed (ask the user for admin rights ? if so, how ? something else ?
The text was updated successfully, but these errors were encountered:
You could invoke the program with sudo to grant it the required privileges. For example, if you have a update subcommand to invoke the self updating behavior, you could run sudo hatt update.
This package works pretty well, thanks for developing it !
But whenthe binary is in a folder that requires admin/root rights to write in like
/usr/bin/
or in windows' programs folder, the update fails. Here is the error I get on linux :Error occurred while updating binary: open /usr/bin/.hatt.new: permission denied
(the name of my program ishatt
)I was wondering how this issue should be addressed (ask the user for admin rights ? if so, how ? something else ?
The text was updated successfully, but these errors were encountered: