Skip to content

Commit

Permalink
brew_installer: use --skip-link.
Browse files Browse the repository at this point in the history
If a user supplies `link: false` in their `Brewfile` then let's also
pass `--skip-link` to `brew install`.
  • Loading branch information
MikeMcQuaid committed Jan 23, 2025
1 parent f5acb38 commit 3d0fcde
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/bundle/brew_installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ def resolve_conflicts!(verbose:)
def install!(verbose:, force:)
install_args = @args.dup
install_args << "--force" << "--overwrite" if force
install_args << "--skip-link" if @link == false
with_args = " with #{install_args.join(" ")}" if install_args.present?
puts "Installing #{@name} formula#{with_args}. It is not currently installed." if verbose
unless Bundle.brew("install", "--formula", @full_name, *install_args, verbose:)
Expand Down

0 comments on commit 3d0fcde

Please sign in to comment.