-
-
Notifications
You must be signed in to change notification settings - Fork 602
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
rhash
is failing verification on the new release
#1011
Comments
rhash
is failing on the new release
rhash
is failing on the new releaserhash
is failing verification on the new release
it seems that the diff in the hashes-order returned
|
in a more specific output:
|
That's annoying - which version of rhash are you using? I wonder if there's a way to specify the hash order given the checksum_hashes_order file that I generate. That or perhaps you could use cut to select a specific hash (for the binary) and just check that - instead of checking them all. |
I found 1.4.0 worked :) the later ones did not (that was the best I could get :/ I had rhash in debian that failed, rhash in fedora that succeeded and rhash from source that failed Rhash from source in the 1.4.0 branch succeeded Also, I tried to remove hashes and I needed to cut more than 50% for it to succeed Also, the test code I provided shows if fails (and runs in a container) |
@mikefarah ping? |
Pong! Sorry been busy - looking at what the build process does, it |
Thinking on this more, I think it would be better if I supplied a little script to extract the type of hash you want for the file you want. That way, it won't depend on which version of See https://github.com/mikefarah/yq/blob/master/scripts/extract-checksum.sh I'll update the next release to include this in the assets - but feel free to give it a try now. |
So basically to validate you'd:
|
I'll try and pull all of the checkums I have. |
Oh, can the script recieve a list of checksums? |
What do you mean? |
I mean, between releases the hash list changed in some sort. |
Yeah I was surprised that rhash couldn't take its own list-hashes as input when validating. Nonetheless, using this script you can reliably extract a particular hash for a supported algorithm.
…________________________________
From: Ron Green ***@***.***>
Sent: Friday, December 10, 2021 9:56:41 PM
To: mikefarah/yq ***@***.***>
Cc: Mike Farah ***@***.***>; Mention ***@***.***>
Subject: Re: [mikefarah/yq] `rhash` is failing verification on the new release (Issue #1011)
I mean, between releases the hash list changed in some sort.
I would like to print the hashes in the new versions order
Or read hashes in the old order
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#1011 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAIZHNP7TA5SLX7FCQJ74SLUQHMGTANCNFSM5IQRA5ZA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
The script is now available in 4.16.2 |
I don't like this. It feels like the equivalent of |
Describe the bug
I have a tool that pulls the YQ version and checks it's rhash value for correctness.. for some reason the latest one is failing (the order of the hashes is incorrect on my machine)
to test locally:
Additional context
I tried to compare the versions and found there were 10 checksums that were in the "incorrect" location. I also checked with upstream rhash and that didn't solve the issue
please let me know if there is additional info missing
The text was updated successfully, but these errors were encountered: