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

Commit 987072c

Browse files
committed
commands/exec: don't use recursive deps.
This (somewhat) makes sense when building formulae but doesn't make sense for `brew bundle exec`. The list should be fairly minimal and reflect actual project dependencies from the `Brewfile` rather than all recursive ones.
1 parent 2a3825b commit 987072c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/bundle/commands/exec.rb

+2-3
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@ def run(*args, global: false, file: nil)
3333
ENV.deps = @dsl.entries.map do |entry|
3434
next if entry.type != :brew
3535

36-
f = Formulary.factory(entry.name)
37-
[f, f.recursive_dependencies.map(&:to_formula)]
38-
end.flatten.compact
36+
Formulary.factory(entry.name)
37+
end.compact
3938
ENV.keg_only_deps = ENV.deps.select(&:keg_only?)
4039
ENV.setup_build_environment
4140

0 commit comments

Comments
 (0)