From 7c16da70acdd849c61cab57527f924e0741e40c1 Mon Sep 17 00:00:00 2001 From: Chris Ayoub Date: Mon, 12 Apr 2021 21:41:42 -0400 Subject: [PATCH] Fix regression with bottle URLs in `brew info` JSON output --- Library/Homebrew/formula.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 685ae6a962..558a1212b5 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -1905,7 +1905,8 @@ class Formula os_cellar = os_cellar.is_a?(Symbol) ? os_cellar.inspect : os_cellar checksum = collector_os[:checksum].hexdigest - path, = bottle_spec.path_resolved_basename(name, checksum, nil) + filename = Bottle::Filename.create(self, os, bottle_spec.rebuild) + path, = bottle_spec.path_resolved_basename(name, checksum, filename) url = "#{bottle_spec.root_url}/#{path}" hash["files"][os] = {