steps-brew-install

command module
v0.0.0-...-46c19db Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 10 Imported by: 0

README

Brew install

Step changelog

Install or upgrade dependencies with Homebrew.

Description

Install or upgrade dependencies using Homebrew, a package manager for MacOS.

Configuring the Step

Homebrew defines the available packages as formulae. Our Step needs the name of the Homebrew formulae you want to use, either specified as a step input, or from a Brewfile in the project's source.

To specify formulae in the step configuration

  1. In the Formula name input, put the name of the formula you want to download.
  2. In the Upgrade formula? input, set the default behavior for previously installed packages. If the input is set to yes, the Step will call brew reinstall to upgrade them to the latest version.
  3. In the Brew install/reinstall options input, you can set additional flags for the brew install or brew reinstall commands.

For the possible options, see Homebrew's documentation.

Alternatively you can install formulae using a Brewfile

  1. Add a Brewfile to the root of the project's source. For the format of the Brewfile, see the Homebrew Bundle documentation
  2. Set the Use a Brewfile to install packages? input to "yes".
  3. (optional) Set the Path to the Brewfile input if it is not in the root of the project's source

🧩 Get started

Add this step directly to your workflow in the Bitrise Workflow Editor.

You can also run this step directly with Bitrise CLI.

⚙️ Configuration

Inputs
Key Description Flags Default
packages Name of the formulas to install. Multiple formulas can be specified by separating them with a space, e.g. git-lfs sqlite pipx This input must be specified when use_brewfile is no
upgrade If set to "yes", the step will upgrade the defined packages by calling brew reinstall [options] [packages] command. Otherwise the step calls brew install [options] [packages]. yes
upgrade_dependents If set to no, the step won't upgrade other installed packages that depend on the package to be installed. This helps predictability and install times, but sometimes could cause problems with existing installed packages if they are not compatible with the newly installed package (Homebrew is an evergreen package manager by design). More information is available here and here. If you experience a broken package, set this input to yes. This input controls the HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK env var. no
use_brewfile If set to "yes", the step will install packages in the Brewfile by running brew bundle. If no Brewfile path is set, it assumes a Brewfile exists in the current directory. no
brewfile_path If set, use_brewfile must be set to yes. Path must end with Brewfile
options Flags to pass to the brew install/reinstall command. brew install/reinstall [options] [packages]
verbose_log Should the step print more detailed log? required no
Outputs There are no outputs defined in this step

🙋 Contributing

We welcome pull requests and issues against this repository.

For pull requests, work on your changes in a forked repository and use the Bitrise CLI to run step tests locally.

Learn more about developing steps:

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL