Work around that pesky Homebrew perforce
problem
#2359
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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: theperforce
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
'smaster
. As long as theperforce
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 afterhomebrew-cask
was updated in order to turn the jobs green.