You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've taken a stab at publishing Homebrew bottles for formula in this repo: rbenv/tap/openssl@1.0 and rbenv/tap/openssl@1.1
On macOS Sequoia 15 arm64, running brew install for any of these formulae should install "bottles" from this organization, which are basically pre-built packages for a certain OS & architecture.
What follows are some of my notes on how this is done.
Important
If you were getting errors such as these in the last 24 hours:
Error: openssl@1.1: Failed to download resource "openssl@1.1"
Download failed: https://ghcr.io/v2/rbenv/tap/openssl/1.1/blobs/sha256:***
that was because I've messed things up in the process, but it should be fixed now. If you're still getting those errors consistently, please comment here or open a new issue. 🙏
Manually edit the bottle ... section in formula files to declare root_url "https://ghcr.io/v2/rbenv/tap"
git push
Notes:
brew bottle produces a *.tar.gz package and a *.bottle.json
brew pr-upload takes all *.bottle.json files, edits the local formulae to add the bottle ... section to them, and uploads the tarballs to GitHub Packages using HOMEBREW_GITHUB_PACKAGES_TOKEN
I've taken a stab at publishing Homebrew bottles for formula in this repo:
rbenv/tap/openssl@1.0andrbenv/tap/openssl@1.1On macOS Sequoia 15 arm64, running
brew installfor any of these formulae should install "bottles" from this organization, which are basically pre-built packages for a certain OS & architecture.What follows are some of my notes on how this is done.
Important
If you were getting errors such as these in the last 24 hours:
that was because I've messed things up in the process, but it should be fixed now. If you're still getting those errors consistently, please comment here or open a new issue. 🙏
How I did it
First off, my local environment:
The steps:
brew uninstall openssl@1.0 openssl@1.1brew install --build-bottle rbenv/tap/openssl@1.0brew install --build-bottle rbenv/tap/openssl@1.1brew bottle --json rbenv/tap/openssl@1.0 --root-url="https://ghcr.io/v2/rbenv/tap"brew bottle --json rbenv/tap/openssl@1.1 --root-url="https://ghcr.io/v2/rbenv/tap"brew pr-upload --root-url="https://ghcr.io/v2/rbenv/tap"Manually edit thebottle ...section in formula files to declareroot_url "https://ghcr.io/v2/rbenv/tap"git pushNotes:
brew bottleproduces a*.tar.gzpackage and a*.bottle.jsonbrew pr-uploadtakes all*.bottle.jsonfiles, edits the local formulae to add thebottle ...section to them, and uploads the tarballs to GitHub Packages using HOMEBREW_GITHUB_PACKAGES_TOKENSee:
TODO
sha256values in the "bottle" section mean and how to verify that the corresponding containers are actually available from ghcr.io