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

[full] Force Homebrew layer rebuild #502

Merged
merged 2 commits into from
Sep 20, 2021
Merged

[full] Force Homebrew layer rebuild #502

merged 2 commits into from
Sep 20, 2021

Conversation

jankeromnes
Copy link
Contributor

@jankeromnes jankeromnes commented Sep 17, 2021

An attempt to work around gitpod-io/gitpod#5280

Description

Update HomeBrew by invalidating the Dazzle layer cache with a simple change.

Related Issue(s)

Fixes gitpod-io/gitpod#5280

How to test

  1. Use the Docker image of this PR in your repository: gitpod/workspace-full:branch-jx-update-brew-1
  2. Confirm that commands like brew update and brew install stripe/stripe-cli/stripe work as expected

Release Notes

Update HomeBrew in gitpod/workspace-full

@gitpod-io
Copy link

gitpod-io bot commented Sep 17, 2021

@gitpod-staging
Copy link

jankeromnes added a commit to jankeromnes/template-ruby-on-rails-postgres that referenced this pull request Sep 20, 2021
@jankeromnes
Copy link
Contributor Author

jankeromnes commented Sep 20, 2021

Tested by:

  1. pointing my fork https://github.com/jankeromnes/template-ruby-on-rails-postgres/blob/main/.gitpod.Dockerfile to gitpod/workspace-postgres:branch-jx-update-brew-1
  2. opening the fork in Gitpod: https://gitpod.io/#https://github.com/jankeromnes/template-ruby-on-rails-postgres
  3. confirming that brew update works fine

FYI, current production Gitpod seems to be on:

$ brew --version
Homebrew 3.2.9
Homebrew/homebrew-core (git revision e811be8b63d; last commit 2021-08-25)

While this updated image has this out-of-the-box:

$ brew --version
Homebrew 3.2.12
Homebrew/homebrew-core (git revision 32c831b13f9; last commit 2021-09-17)

Unfortunately, brew install stripe/stripe-cli/stripe is still broken today:

$ brew update
[...]

$ brew --version
Homebrew 3.2.12
Homebrew/homebrew-core (git revision 8a1f31f2b6f; last commit 2021-09-20)

$ brew install stripe/stripe-cli/stripe
==> Tapping stripe/stripe-cli
Cloning into '/home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/stripe/homebrew-stripe-cli'...
remote: Enumerating objects: 315, done.
remote: Counting objects: 100% (147/147), done.
remote: Compressing objects: 100% (98/98), done.
remote: Total 315 (delta 48), reused 0 (delta 0), pack-reused 168
Receiving objects: 100% (315/315), 40.29 KiB | 4.48 MiB/s, done.
Resolving deltas: 100% (103/103), done.
Error: Invalid formula: /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/stripe/homebrew-stripe-cli/stripe.rb
formulae require at least a URL
Error: Cannot tap stripe/stripe-cli: invalid syntax in tap!

This seems to be a bug in Stripe CLI's formula: stripe/stripe-cli#645

Copy link

@JanKoehnlein JanKoehnlein left a comment

Choose a reason for hiding this comment

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

LGTM

@jankeromnes jankeromnes merged commit fdafb0c into master Sep 20, 2021
@jankeromnes jankeromnes deleted the jx/update-brew-1 branch September 20, 2021 08:57
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.

Running brew update causes environment to stop
2 participants