From 3d0fcdea3b8bf7e624f51f5777e75c4749540571 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 23 Jan 2025 15:32:35 +0000 Subject: [PATCH] brew_installer: use --skip-link. If a user supplies `link: false` in their `Brewfile` then let's also pass `--skip-link` to `brew install`. --- lib/bundle/brew_installer.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/bundle/brew_installer.rb b/lib/bundle/brew_installer.rb index e7e7ea5e7..05d9598a2 100644 --- a/lib/bundle/brew_installer.rb +++ b/lib/bundle/brew_installer.rb @@ -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:)