-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
p4 update checksum - disable sha256 #170483
Conversation
Noticing that: https://www.perforce.com/perforce/doc.current/user/relnotes.txt is out of date, causing CI to fail. It should be reflecting this: https://filehost.perforce.com/perforce/r23.2/doc/user/relnotes.txt
|
Thanks @akwan for undertaking this. If there's no good solution we'll probably have to go to |
Acknowledged. I'll update the PR as this matches the |
@akwan - I'm happy to wait for Perforce to come back as the best solution would be to keep the checksums and find a workable way to check for version information. |
Is there a pattern where the checksums can be derived dynamically instead of being codified? The checksums are published and updated in files like: https://filehost.perforce.com/perforce/r23.2/bin.macosx12arm64/SHA256SUMS which looks like:
That file and its contents can update at any time, just like the binary file in place. Would it make sense to reference the values in that, or would it make more sense for some sort of CI to periodically check that file, and auto-file a PR with the new checksums for merging in? Or is neither approach really common/valid? Reached out to them to chime on the PR. |
No, that would invalidate the trust in the checksum since you can just MITM the website then. |
@akwan - I merged this to get the software unblocked. It would be great if we can get this sorted out with Perforce. Appreciate if you can keep us updated. Thank you! |
p4 update checksum - disable sha256
There is an issue of trust here. Perforce does not want to distribute code with known problems once those problems are fixed. That's why the version is replaced. But how does brew know this change is something to trust. |
Important: Do not tick a checkbox if you haven’t performed its action. Honesty is indispensable for a smooth review process.
In the following questions
<cask>
is the token of the cask you're submitting.After making any changes to a cask, existing or new, verify:
brew audit --cask --online <cask>
is error-free.brew style --fix <cask>
reports no offenses.Additionally, if adding a new cask:
brew audit --cask --new <cask>
worked successfully.HOMEBREW_NO_INSTALL_FROM_API=1 brew install --cask <cask>
worked successfully.brew uninstall --cask <cask>
worked successfully.Perforce has a tendency to update minor versions in place, with the patch version only discoverable by running the binary and/or checking the documented SHA256SUM URL for changes/mod dates.
In #168330 referencing #163174 , it was mentioned removing the checksum. Does that mean just changing to:
If we don't want to remove sha256 sums in the meantime, this change'll suffice. But it will break again when they update.