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

[Ubuntu] homebrew will be removed from PATH variable #6283

Closed
5 of 10 tasks
ddobranic opened this issue Sep 22, 2022 · 22 comments
Closed
5 of 10 tasks

[Ubuntu] homebrew will be removed from PATH variable #6283

ddobranic opened this issue Sep 22, 2022 · 22 comments

Comments

@ddobranic
Copy link
Contributor

ddobranic commented Sep 22, 2022

Breaking changes

homebrew will be removed from $PATH on Ubuntu images.

Target date

Image deployment will start September 22nd, and will be finished on Monday, September 27th.

The motivation for the changes

Starting with homebrew 3.6.0, gcc and its toolchain (binutils and glibc) became mandatory dependencies for any installed package. We are going to remove homebrew from the $PATH variable so it does not conflict with the canonical-provided software and toolchain.

See more:

Possible impact

If your project depends on homebrew your build will be broken.

Platforms affected

  • Azure DevOps
  • GitHub Actions

Runner images affected

  • Ubuntu 18.04
  • Ubuntu 20.04
  • Ubuntu 22.04
  • macOS 10.15
  • macOS 11
  • macOS 12
  • Windows Server 2019
  • Windows Server 2022

Mitigation Path

Please use Homebrew/actions/setup-homebrew action to make brew available during running session.

@ddobranic ddobranic pinned this issue Sep 23, 2022
@ddobranic ddobranic changed the title [Ubuntu] homebrew will be removed from $PATH [Ubuntu] homebrew will be removed from $GITHUB_PATH Sep 23, 2022
@ddobranic ddobranic changed the title [Ubuntu] homebrew will be removed from $GITHUB_PATH [Ubuntu] homebrew will be removed from $PATH Sep 23, 2022
@rfay
Copy link

rfay commented Sep 25, 2022

Enormous breakage, enormous number of repositories. And oddly to this point, intermittent.

webispy added a commit to webispy/homebrew-sdk that referenced this issue Sep 26, 2022
Github linux runner image updated
- actions/runner-images#6283

Signed-off-by: Inho Oh <[email protected]>
marcus-bcl added a commit to ministryofjustice/delius-releases that referenced this issue Sep 26, 2022
This was recently removed from the path in GitHub Actions runners. See actions/runner-images#6283
@selfsk
Copy link

selfsk commented Sep 26, 2022

Strange approach... lets brake image that used probably by 95% of github actions. Where there an announcement made about these changes? If not - it makes github images completely unreliable.

rbehshad added a commit to RedemptionGames/homebrew-tap that referenced this issue Sep 27, 2022
Fix brew no longer in path on ubuntu machines
mrlesmithjr added a commit to mrlesmithjr/dockerfiles that referenced this issue Nov 29, 2022
sihugh added a commit to alphagov/govuk-dns that referenced this issue Dec 5, 2022
[Homebrew has been removed from $PATH](actions/runner-images#6283) in Ubuntu images on Github actions.
eugenesvk pushed a commit to eugenesvk/action-homebrew-bump-cask that referenced this issue Dec 15, 2022
dieterplex added a commit to dieterplex/easy_rust_cht that referenced this issue Dec 17, 2022
dieterplex added a commit to dieterplex/easy_rust_cht that referenced this issue Dec 18, 2022
rajyan added a commit to rajyan/dotfiles that referenced this issue Dec 31, 2022
blendthink added a commit to blendthink/flutter-mobile-template-diff that referenced this issue May 6, 2023
@ingeridhellen
Copy link

@sidekick-eimantas
Copy link

https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2204-Readme.md still says ubuntu-22 includes homebrew.

It does include homebrew, it's just not in the PATH

@jeremyharisch
Copy link

Using suggested mitigation does not work and fails with

| [command]/usr/bin/bash /run/act/actions/Homebrew-actions-setup-homebrew@master/setup-homebrew/main.sh true false
| Could not find 'brew' command in PATH or standard locations.

nlisgo added a commit to nlisgo/drupal-contrib that referenced this issue Jul 3, 2023
mstrelan pushed a commit to mstrelan/drupal-contrib that referenced this issue Jul 3, 2023
wkyoshida added a commit to wkyoshida/Scribe-Data that referenced this issue Jul 23, 2023
Use GitHub action to setup Homebrew for ubuntu runner image,
as described in actions/runner-images#6283
@jozefizso
Copy link

The amount of breaking changes in GHA runner images is staggering. For the last 30 days we see randomly failing workflows because GitHub released incompatible images without any communication.

mstrelan pushed a commit to mstrelan/drupal-contrib that referenced this issue Dec 7, 2023
br3ndonland added a commit to br3ndonland/terraform-examples that referenced this issue Jan 5, 2024
Homebrew is being removed from the Ubuntu GitHub Actions `$PATH`.
actions/runner-images#6283
facebook-github-bot pushed a commit to facebook/react-native that referenced this issue Sep 19, 2024
Summary:
This change setups homebrew on Ubuntu. Due to actions/runner-images#6283, brew is not in the PATH anymore.

## Changelog:
[Internal] - Setup homebrew in ubuntu machine

Pull Request resolved: #46575

Test Plan: Can't test before it lands. :(

Reviewed By: cortinico

Differential Revision: D63027253

Pulled By: cipolleschi

fbshipit-source-id: e0b3a3c1a2a7b0659f0c1f57c45d8d42a74734a1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests