Skip to content

[PoC] ci: Homebrew strikes again, let's try some workarounds on curre… #391

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

Closed
wants to merge 1 commit into from

Conversation

szeder
Copy link

@szeder szeder commented Oct 11, 2019

…nt master

This is just a small experiment.

@dscho
Copy link
Member

dscho commented Oct 11, 2019

@szeder how about doing something like this instead (see git-for-windows@2aaa68e)?

commit 2aaa68e3a232a1353d6d796e9466428b22aaea4b
Author: Johannes Schindelin <[email protected]>
Date:   Fri Oct 11 14:54:07 2019 +0200

    ci(osx): use new location of the `perforce` cask
    
    ... falling back to the old one.
    
    Signed-off-by: Johannes Schindelin <[email protected]>

diff --git a/ci/install-dependencies.sh b/ci/install-dependencies.sh
index 85a9d6b15cd..489b5dcf173 100755
--- a/ci/install-dependencies.sh
+++ b/ci/install-dependencies.sh
@@ -40,6 +40,7 @@ osx-clang|osx-gcc)
 	test -z "$BREW_INSTALL_PACKAGES" ||
 	brew install $BREW_INSTALL_PACKAGES
 	brew link --force gettext
+	brew cask install perforce ||
 	brew install caskroom/cask/perforce
 	case "$jobname" in
 	osx-gcc)

That way, it works no matter how old/new the image happens to be on the build agent...

@dscho
Copy link
Member

dscho commented Oct 11, 2019

how about doing something like this instead (see git-for-windows@2aaa68e)?

Just for the record: this passes the CI...

@szeder
Copy link
Author

szeder commented Oct 11, 2019 via email

@dscho
Copy link
Member

dscho commented Oct 12, 2019

I don't think it's worth keeping that old install command around.

It's not an old "install command", but an "old install" command.

In other words, I do operate Azure Pipelines in places (e.g. git/git) where the macOS agent does have an older Homebrew, and since we no longer brew update, you would break that.

I am not a fan of breaking existing setups, even if it requires slightly ugly workarounds. Especially when those workarounds save me time (I look at every failed CI build in git/git and gitgitgadget/git and git-for-windows/git).

The point is that the command brew cask install perforce apparently worked already over a year ago. I think that for our intents and purposes (building cooking topics and PRs on Travis CI and Azure Pipelines) that's "old enough".

Not sure about that.

I, for one, often go directly into the Azure Pipelines/AppVeyor/Travis configuration when I need to build a project that I do not know yet. They typically have much more up to date information about building than any README.md and/or INSTALL.

Does it really hurt to keep that workaround, just to please some sort of OCD? ;-)

@szeder
Copy link
Author

szeder commented Oct 13, 2019 via email

@szeder szeder closed this Oct 13, 2019
@szeder szeder deleted the ci-poc-brew-cask-new branch March 6, 2022 11:04
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