Skip to content

Work around that pesky Homebrew perforce problem #2359

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

Merged
merged 1 commit into from
Oct 17, 2019

Conversation

dscho
Copy link
Member

@dscho dscho commented Oct 17, 2019

I just pushed a fix that was also contributed to git.git via gitgitgadget#400, but it still does not fix the problem.

Turns out that @szeder was spot on when he said that we were reluctant to switch to brew cask install perforce because stale caches could cause a problem: the perforce recipe downloads the latest binaries from Perforce's website, and when that changes, the recipe needs to be updated with the new version number and the new SHA-256. Perforce updated that file on Fri, 11 Oct 2019 20:53:43 GMT most recently, and I offered a PR to update the recipe, and even though that PR was merged, the Azure Pipeline still failed because it still had the old version.

Let's work around this by falling back to pulling homebrew-cask's master. As long as the perforce recipe in that repository is updated, we will be fine. To make sure that it is updated, I started implementing an Azure Pipeline to do that. With the change in this PR, we can always re-run the jobs after homebrew-cask was updated in order to turn the jobs green.

It still fails! *Still!*

Even after upgrading the cask's definition in the PR
Homebrew/homebrew-cask#70981 does it fail.

The explanation is, as Gábor Szeder dug out from the commit history:
the local definitions might get stale and need to be updated.

So let's just update them in case `brew cask install perforce` fails,
and just try again!

This will still fail, of course, when `homebrew-cask` falls behind
Perforce's release schedule. But once it is updated, we can now simply
re-run the failed jobs and they will pick up that update.

As to updating `homebrew-cask`: I started automating this, via
https://dev.azure.com/gitgitgadget/git/_build?definitionId=11&_a=summary
(I plan on finishing it once the next Perforce upgrade comes around.)

Signed-off-by: Johannes Schindelin <[email protected]>
@dscho dscho force-pushed the homebrew-perforce branch from 84db932 to 625db81 Compare October 17, 2019 10:59
@dscho dscho requested a review from derrickstolee October 17, 2019 11:09
@dscho dscho changed the title [DO NOT MERGE YET] Try to fix that Homebrew perforce problem Work around that pesky Homebrew perforce problem Oct 17, 2019
Copy link

@derrickstolee derrickstolee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! The proof is in the pudding, of course, and your builds have gone green. The PR description clarifies things, too. Thanks!

@dscho dscho merged commit 144cb18 into git-for-windows:master Oct 17, 2019
@dscho dscho deleted the homebrew-perforce branch October 17, 2019 12:19
dscho added a commit that referenced this pull request Oct 17, 2019
Work around that pesky Homebrew `perforce` problem
@dscho dscho mentioned this pull request Nov 4, 2019
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

Successfully merging this pull request may close these issues.

2 participants