Skip to content

Feature/update brew version #369

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 5 commits into from
Apr 12, 2021
Merged

Feature/update brew version #369

merged 5 commits into from
Apr 12, 2021

Conversation

vimanyu
Copy link
Contributor

@vimanyu vimanyu commented Apr 12, 2021

Fix for errors observed while installing packages with homebrew. Until Github runners are updated to use latest hombrew versions, manually updating homebrew in Github workflows.

Homebrew/brew#11070
Homebrew/discussions#691

vimanyu added 3 commits April 12, 2021 12:32
Looks like bintray is shut down and the older versions
of brew look for packages in bintray.
Homebrew/discussions#691
@google-cla google-cla bot added the cla: yes label Apr 12, 2021
@vimanyu vimanyu requested a review from jonsimantov April 12, 2021 20:39
Copy link
Contributor

@jonsimantov jonsimantov left a comment

Choose a reason for hiding this comment

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

Do the Integration tests and CPP packaging workflows need this as well?

@@ -78,6 +78,14 @@ jobs:
path: /tmp/android-ndk-r16b
key: android-ndk-${{ matrix.os }}-r16b

- name: Update homebrew (avoid bintray errors)
if: startsWith(matrix.os, 'macos')
Copy link
Contributor

Choose a reason for hiding this comment

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

any particular reason this uses startsWith(matrix.os) and the below uses runner.os ==? Can you unify them?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So I was trying to keep it consistent with any other macos checks in those blocks.
For a couple of the blocks, I found the comparison used runner.os and for others, we used macos.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For example, cpp-packaging uses runner.os comparison,
c87c8a4

integration_tests.yml uses "matrix.os"
ce9c9fa

@vimanyu
Copy link
Contributor Author

vimanyu commented Apr 12, 2021

Thanks for pointing it out. Yes, they needed this update too.
I have scanned through the usages of install_prereqs scripts in our workflows and added this step prior.
Running integration_tests workflow just to confirm.

@jonsimantov jonsimantov self-requested a review April 12, 2021 22:03
@jonsimantov jonsimantov merged commit c46da1a into main Apr 12, 2021
@jonsimantov jonsimantov deleted the feature/update-brew-version branch April 12, 2021 22:06
@firebase firebase locked and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants