Skip to content
This repository was archived by the owner on Mar 20, 2025. It is now read-only.

Commit e521d3d

Browse files
committed
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`.
1 parent f035015 commit e521d3d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/bundle.rb

+2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ class BundleCmd < AbstractCommand
6363
description: "`install` prints output from commands as they are run. " \
6464
"`check` lists all missing dependencies."
6565
switch "--no-upgrade",
66+
env: :bundle_no_upgrade,
6667
description: "`install` does not run `brew upgrade` on outdated dependencies. " \
68+
"`check` does not check for outdated dependencies. "
6769
"Note they may still be upgraded by `brew install` if needed."
6870
switch "-f", "--force",
6971
description: "`install` runs with `--force`/`--overwrite`. " \

0 commit comments

Comments
 (0)