Skip to content

Commit

Permalink
Merge pull request #770 from jamescdavis/use_quiet_flag_for_brew_list…
Browse files Browse the repository at this point in the history
…_info

fix: use --quiet flag for brew_list_info
  • Loading branch information
MikeMcQuaid authored Aug 12, 2020
2 parents 6a81666 + 3223947 commit 3e9ebe1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/bundle/locker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def lock(entries, global: false, file: nil, no_lock: false)

def brew_list_info
@brew_list_info ||= begin
name_bottles = JSON.parse(`brew info --json=v1 --installed`)
name_bottles = JSON.parse(`brew info --json=v1 --installed --quiet`)
.each_with_object({}) do |f, hash|
bottle = f["bottle"]["stable"]
bottle&.delete("rebuild")
Expand Down
2 changes: 1 addition & 1 deletion spec/bundle/locker_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
allow(locker).to receive(:lockfile).and_return(lockfile)
allow(brew_options).to receive(:deep_stringify_keys)
.and_return("restart_service" => true)
allow(locker).to receive(:`).with("brew info --json=v1 --installed").and_return <<~EOS
allow(locker).to receive(:`).with("brew info --json=v1 --installed --quiet").and_return <<~EOS
[
{
"name":"mysql",
Expand Down

0 comments on commit 3e9ebe1

Please sign in to comment.