-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
When updating, download & verify new package before uninstalling #2220
Comments
The current behaviour is unfortunate but an old version is not remove at all. E.g. I've vim installed - which gets an update every 1-2 days. Every single installed/updated version is still on my system, see the directory
So all it would need is to detect a failed update and act accordingly. Maybe uninstalling (of shims) and removing the https://github.com/lukesampson/scoop/wiki/The-'Current'-Version-Alias |
When a download or hash check fails it will leave an empty directory behind. If we remove it and simply run |
Maybe |
@gitolicious no, reset doesn't run |
Well, then unfortunately your suggestion is only valid for very basic manifests. I see two solutions here:
|
PR for solution 1 in #2343 |
|
Just experienced this in ScoopInstaller/Extras#1269 but it is not the first time. Considering how many issues come up when you search for is:issue "hash check fail" on the main scoop repo, not to mention the buckets, this would be VERY nice to have. |
Coming back to the number of issues raised. I think a lot less "hash check fail" issues would be raised if the app wasn't left in an uninstalled state, saving time fixing hashes. |
Currently, performing an upgrade of a package runs an uninstallation before downloading the updated files. It is possible for the download to fail or for the checksum to not match, leaving no copy of the package installed and, potentially, no way to reinstall it. Ideally, the update package should be downloaded and verified before the uninstallation process begins.
The text was updated successfully, but these errors were encountered: