From e521d3dfcafc1075b725b5959774dd3808335744 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 16 Jan 2025 11:10:05 +0000 Subject: [PATCH] cmd/bundle: add HOMEBREW_BUNDLE_NO_UPGRADE. This is already a `--no-upgrade` argument but let's add it as an environment variable for easier configuration. While we're here, let's also correct the comment to note that it also affects `brew bundle check`. --- cmd/bundle.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/bundle.rb b/cmd/bundle.rb index 23355d9a3..ea63f6987 100755 --- a/cmd/bundle.rb +++ b/cmd/bundle.rb @@ -63,7 +63,9 @@ class BundleCmd < AbstractCommand description: "`install` prints output from commands as they are run. " \ "`check` lists all missing dependencies." switch "--no-upgrade", + env: :bundle_no_upgrade, description: "`install` does not run `brew upgrade` on outdated dependencies. " \ + "`check` does not check for outdated dependencies. " "Note they may still be upgraded by `brew install` if needed." switch "-f", "--force", description: "`install` runs with `--force`/`--overwrite`. " \