Skip to content

Commit

Permalink
Merge pull request #948 from XuehaiPan/master
Browse files Browse the repository at this point in the history
brew_dumper: fix topological sort debugging output.
  • Loading branch information
MikeMcQuaid authored Apr 19, 2021
2 parents 0df097c + 9f1ec50 commit 9ee0d99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bundle/brew_dumper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def sort!(formulae)
.map { |name| @formulae_by_full_name[name] || @formulae_by_name[name] }
.uniq { |f| f[:full_name] }
rescue TSort::Cyclic => e
e.message =~ /\["(.*)", "(.*)"\]/
e.message =~ /\["([^"]*)".*"([^"]*)"\]/
cycle_first = Regexp.last_match(1)
cycle_last = Regexp.last_match(2)
odie e.message if !cycle_first || !cycle_last
Expand Down

0 comments on commit 9ee0d99

Please sign in to comment.