Skip to content
Snippets Groups Projects
  • Jack Nagel's avatar
    8cb861c6
    Merge repeated deps with differing options · 8cb861c6
    Jack Nagel authored
    When expanding dependencies, repeated deps are treated as equal and all
    but the first are discarded when #uniq is called on the resulting array.
    However, they may have different sets of options attached, so we cannot
    assume they are the same.
    
    After the initial expansion, we group them by name and then create a new
    Dependency object for each name, merging the options from each group.
    
    Fixes Homebrew/homebrew#20335.
    8cb861c6
    History
    Merge repeated deps with differing options
    Jack Nagel authored
    When expanding dependencies, repeated deps are treated as equal and all
    but the first are discarded when #uniq is called on the resulting array.
    However, they may have different sets of options attached, so we cannot
    assume they are the same.
    
    After the initial expansion, we group them by name and then create a new
    Dependency object for each name, merging the options from each group.
    
    Fixes Homebrew/homebrew#20335.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.