Add setup-homebrew support for ubuntu-slim.#770
Merged
MikeMcQuaid merged 1 commit intomainfrom Dec 9, 2025
Merged
Conversation
b38cfe8 to
c20c3be
Compare
This will allow it to be installed and used without a pre-existing Homebrew installation.
c20c3be to
0da5e12
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request adds support for installing Homebrew automatically when it's not already present, enabling setup-homebrew to work on systems without a pre-existing Homebrew installation. The main change introduces an install_homebrew function that detects the platform, downloads the official Homebrew installer, and verifies the installation.
Key Changes
- Added
install_homebrew()function to automatically install Homebrew when not found - Modified error handling to attempt installation instead of immediately failing when
brewis not in PATH - Added test configuration for ubuntu-slim environment to verify the new installation capability
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| setup-homebrew/main.sh | Adds install_homebrew() function with platform detection and automatic Homebrew installation, replaces error exit with installation attempt when brew is not found |
| .github/workflows/setup-homebrew.yml | Adds ubuntu-slim test matrix entry and descriptive names to all test configurations |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This will allow it to be installed and used without a pre-existing Homebrew installation.