Scoop icon indicating copy to clipboard operation
Scoop copied to clipboard

[FeatureRequest] Previous Version Alternative using git history

Open JustinGrote opened this issue 5 years ago • 4 comments

Currently if you want to install a previous version, scoop tries to autogenerate a manifest to see if it works, however there may be breaking changes between versions in the manifest that won't allow this.

However, there is a practical alternative:

  1. I specify scoop install [email protected]
  2. scoop does git log -p <manifest>.json and extracts a list of previous versions based on the version.json, since it would have changed every commit
  3. If one of the versions matches, it retrieves that version of the file from the repository and uses that manifest.

It doesn't guarantee the file download would still exist of course, but it would allow a more traditional way of accessing past versions.

JustinGrote avatar Mar 25 '20 01:03 JustinGrote

The problem with this is if past manifests were broken and the fix also included a version bump.

I think it'd be far simpler and more reliable to have a legacy property similar to how architecture works, but instead of 32bit|64bit you'd have a version(s). But even that has a whole lot of problems to deal with for a fairly limited feature.

Maybe the best solution would be to request its addition to the versions bucket?

Dabombber avatar Mar 27 '20 11:03 Dabombber

You might wanna check this. I wrote a custom script letting user installs package for specific version/commit.

https://github.com/ScoopInstaller/Scoop/issues/3045#issuecomment-1138042773

ClassicDarkChocolate avatar May 26 '22 02:05 ClassicDarkChocolate

I think scoop supporting this would be the closest thing to sadf-vm on windows, something I sorely miss from other OSes. I would highly, highly, request the implementation of this feature. Perhaps it could be considered an experimental or "at your own risk" feature. I don't want to be ungrateful of course, but just wanted to throw a vote into the pool

riotrah avatar Sep 25 '22 05:09 riotrah