Skip to content

Commit

Permalink
cmd/bundle: add HOMEBREW_BUNDLE_NO_UPGRADE.
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
MikeMcQuaid committed Jan 16, 2025
1 parent f035015 commit e521d3d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/bundle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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."

Check failure on line 69 in cmd/bundle.rb

View workflow job for this annotation

GitHub Actions / tests (ubuntu-latest)

Layout/IndentationConsistency: Inconsistent indentation detected.

Check failure on line 69 in cmd/bundle.rb

View workflow job for this annotation

GitHub Actions / tests (ubuntu-latest)

Lint/Void: Literal `"Note they may still be upgraded by `brew install` if needed."` used in void context.

Check failure on line 69 in cmd/bundle.rb

View workflow job for this annotation

GitHub Actions / tests (macOS-latest)

Layout/IndentationConsistency: Inconsistent indentation detected.

Check failure on line 69 in cmd/bundle.rb

View workflow job for this annotation

GitHub Actions / tests (macOS-latest)

Lint/Void: Literal `"Note they may still be upgraded by `brew install` if needed."` used in void context.
switch "-f", "--force",
description: "`install` runs with `--force`/`--overwrite`. " \
Expand Down

0 comments on commit e521d3d

Please sign in to comment.