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

[Feature Request] Present new Check / Get Hashes bin #2348

Closed
Ash258 opened this issue Jul 3, 2018 · 2 comments
Closed

[Feature Request] Present new Check / Get Hashes bin #2348

Ash258 opened this issue Jul 3, 2018 · 2 comments

Comments

@Ash258
Copy link
Contributor

Ash258 commented Jul 3, 2018

It would be awesome if bucket owners / collaborators could have new bin for checking / recalculating hashes for manifest.
It's really pain to download each binary manually and run something like: Get-hash ... .ToLower() | clip for each file.

There are bins which are really handy (checkver, ...) and are easily transferable into other buckets.
Could you add new lib inside scoop for hashes check?. Basically it would download all urls for each architecture, calculate hashes and edit file (like checkver do with: checkver <App> -u)

If there is already option please let me know.

PS: Why to use resolve-path (split-path (split-path (scoop which scoop))) in:

https://github.com/lukesampson/scoop-extras/blob/7112051787c42b27de906803acfbc2cf3bba86c0/bin/checkver.ps1#L1

(and other bins) when you can use resolve-path (scoop prefix scoop)?

@r15ch13
Copy link
Member

r15ch13 commented Jul 3, 2018

You can run .\bin\checkver.ps1 * -u (or -f) from your local clone. This will download all files and updates hash values (if URLs and checkver are still correct).

scoop prefix wasn't available when I wrote that script. 😁 Good catch!

@Ash258
Copy link
Contributor Author

Ash258 commented Jul 4, 2018

checkver -f is working when manifest have autoupdate, but its not suitable for manifest without autoupdate property (some vendors use file server structure base on year and month, not version named files).

Sure you can just copy all files into autoupdate property, run checkver -f, and remove autoupdate, but custom bin would save some time.

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

2 participants