Patrick Linnane
407d64108c
Merge pull request #19673 from Homebrew/bundle_tests_coverage
...
test/bundle: add additional test coverage.
2025-04-01 16:19:46 +00:00
Mike McQuaid
cf8835eff7
test/bundle: add additional test coverage.
...
Add missing test coverage, requires, fix a TODO and remove `needs_macos`
from a cask test.
2025-04-01 15:17:19 +01:00
Mike McQuaid
c72386e3c3
bundle/commands/cleanup: correctly handle .keepme
references.
...
Extract the relevant logic from `formula.rb`, moving to `keg.rb` and
then use this logic in `bundle/commands/cleanup.rb` to ensure that we
don't say we need to uninstall formulae that should be still kept.
2025-04-01 15:12:12 +01:00
Bo Anderson
650f62bcba
Fold brew bundle services
into exec
2025-03-28 05:54:58 +00:00
Bo Anderson
c7e8b66da3
bundle: add --services
flag for sh and exec
2025-03-28 05:54:57 +00:00
Bo Anderson
786ad348a5
bundle: use version env for installer service handling
2025-03-28 05:54:52 +00:00
Bo Anderson
615fb764a1
Add brew bundle services
helper
2025-03-28 05:21:07 +00:00
Patrick Linnane
ad75e9b337
Merge pull request #19627 from Homebrew/bundle_check_already_output_formulae_errors
...
Allow callers of `brew bundle check` to filter errors.
2025-03-27 23:52:13 +00:00
Mike McQuaid
d3a64157e1
Allow callers of brew bundle check
to filter errors.
...
If callers of `brew bundle check` have already output some formulae
errors, they can set the
`HOMEBREW_BUNDLE_CHECK_ALREADY_OUTPUT_FORMULAE_ERRORS` environment
variable to the names of the formulae that have already been output.
2025-03-27 15:37:31 +00:00
Patrick Linnane
9821a7e896
fix new offenses
...
Signed-off-by: Patrick Linnane <patrick@linnane.io>
2025-03-27 03:38:09 +00:00
Mike McQuaid
e97a226b62
bundle/brew_installer: tweak approach.
...
Co-authored-by: Bo Anderson <mail@boanderson.me>
2025-03-25 17:46:41 +00:00
Mike McQuaid
f2139c61ed
bundle/brew_installer: strip revision number from version file.
...
This doesn't make sense for consumption outside of Homebrew.
2025-03-25 15:39:50 +00:00
Mike McQuaid
6910e05163
bundle/mac_app_store_checker: add missing require.
2025-03-25 15:01:50 +00:00
Mike McQuaid
4c97a795a9
brew bundle env
: sort and filter output.
...
- Sort output by key so it's more readable.
- Skip exporting empty values because shell scripts treat them as unset.
- Skip exporting non-Homebrew things that were already set in the old
environment to avoid massive duplication and higher chances of e.g.
bad escapes breaking things.
2025-03-25 13:47:44 +00:00
Mike McQuaid
fcd9b340a8
brew bundle env
: quote values correctly.
...
Otherwise, certain output will break the script when `eval`ed.
2025-03-25 11:55:52 +00:00
Mike McQuaid
2dbce6bac5
Merge pull request #19579 from Homebrew/bundle_version_file
...
Add `version_file:` DSL to `Brewfile`
2025-03-25 10:11:52 +00:00
János Orcsik
ef95548be8
Add brew_dumper.rb
2025-03-24 19:38:23 +01:00
Mike McQuaid
df0fe8a802
Add version_file:
DSL to Brewfile
...
This allows writing to e.g. `.ruby-version` files directly from the
`Brewfile`, making it easy to keep these versions in sync.
2025-03-24 17:34:35 +00:00
Mike McQuaid
9033719820
bundle/installer: add missing require.
2025-03-24 16:45:22 +00:00
Carlo Cabrera
f7ee1902e4
bundle: require
more lazily
...
This will hopefully make using `brew bundle` a little bit snappier.
2025-03-24 22:48:58 +08:00
Bo Anderson
7e64051479
bundle: remove include Kernel
references
2025-03-21 04:43:08 +00:00
Carlo Cabrera
a4f2797612
bundle/exec: fix command PATH
lookup
...
We are checking `PATH` for the command too early, since the code below
it mutates `PATH`.
Let's defer the check to later to fix this.
2025-03-19 21:55:15 +08:00
Mike McQuaid
e0597c0dc4
Merge pull request #19542 from Homebrew/brew_bundle_docs
...
Import documentation for `brew bundle`
2025-03-19 12:34:40 +00:00
Mike McQuaid
2b46940876
Merge pull request #19545 from Homebrew/vscode_variants
...
Look for VSCode variants
2025-03-19 12:33:47 +00:00
Mike McQuaid
d84fac5af4
Look for VSCode variants
...
We've had requests for this in Homebrew/bundle a few times so let's
implement it both for there and for `brew edit`.
Tested on my machine with `cursor` and working as expected.
2025-03-19 11:42:37 +00:00
Mike McQuaid
dea26d02b7
Import documentation for brew bundle
...
This was in the (soon to be archived) Homebrew/homebrew-bundle
repository's `README`. There's some good content here that doesn't
cleanly fit into the `brew` manpage so let's move it here.
While we're here, let's de-emphasize `whalebrew` as it's not
widely used and add commented-out deprecation warnings for its future
deprecation.
2025-03-19 10:53:00 +00:00
Mike McQuaid
1fa4128112
Merge pull request #19543 from Homebrew/bundle_services_installed
...
bundle: remove services_installed?
2025-03-19 10:50:01 +00:00
Mike McQuaid
a502ae2920
bundle/brew_services: use HOMEBREW_BREW_FILE.
...
This ensures the correct `brew` binary is always used.
2025-03-19 10:24:42 +00:00
Mike McQuaid
c7f6fc639b
bundle: remove services_installed?
...
`brew services` is now always "installed".
2025-03-19 10:14:56 +00:00
Mike McQuaid
f8baea29cb
Merge pull request #19540 from Homebrew/brew_bundle_cleanup
...
Cleanup some missing references to Homebrew Bundle.
2025-03-19 10:07:37 +00:00
Mike McQuaid
7a57af242e
Cleanup some missing references to Homebrew Bundle.
...
Let's just call it `brew bundle` from now on as it's a normal command.
Also, fix a reference to "Homebrew Services" while we're here.
2025-03-19 09:51:39 +00:00
Mike McQuaid
7434dfcbb5
bundle/cask_installer: remove debugging output.
...
This was accidentally left in but should have been removed.
2025-03-19 09:02:12 +00:00
Mike McQuaid
bdeca530ff
Migrate Homebrew/bundle to Homebrew/brew
...
Co-authored-by: Bo Anderson <mail@boanderson.me>
2025-03-19 06:47:01 +00:00