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

bump-cask-pr: cleanup handling of multiple hashes #13802

Merged
merged 1 commit into from
Sep 5, 2022

Conversation

Rylan12
Copy link
Member

@Rylan12 Rylan12 commented Sep 4, 2022

Fixes #13773

This PR cleans up the handling of multiple hashes for bumping casks. Here is the approach that I've taken: first, check if the current hash is :no_check. If it's not, go through each arch/language configuration one at a time (e.g. Intel en, ARM en, Intel fr, ARM fr) to find the new hash values and add them to the replacement pairs. Then, we use .uniq on the replacement pairs to remove duplicates before applying each replacement. I think this is a simpler way to handle both arch and language differences in the same place.

@Rylan12 Rylan12 added the critical Critical change which should be shipped as soon as possible. label Sep 4, 2022
@BrewTestBot
Copy link
Member

Review period skipped due to critical label.

@MikeMcQuaid MikeMcQuaid merged commit 552dc93 into Homebrew:master Sep 5, 2022
@Rylan12 Rylan12 deleted the fix-bump-cask-pr branch September 5, 2022 16:32
@github-actions github-actions bot added the outdated PR was locked due to age label Oct 6, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
critical Critical change which should be shipped as soon as possible. outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

brew bump and brew bump-cask-pr error out when bumping wondershare-edrawmax
3 participants