From 4ef86326873b44c01424497050de6b1612160573 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 24 Feb 2023 15:44:53 +0000 Subject: [PATCH] cmd/info: handle casks with API. Fall back to default location. --- Library/Homebrew/cmd/info.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/cmd/info.rb b/Library/Homebrew/cmd/info.rb index d1d92be9b2..22326122d3 100644 --- a/Library/Homebrew/cmd/info.rb +++ b/Library/Homebrew/cmd/info.rb @@ -254,6 +254,8 @@ module Homebrew when Formula f.path.relative_path_from(f.tap.path) when Cask::Cask + return "#{f.tap.default_remote}/blob/HEAD/Casks/#{f.token}.rb" if f.sourcefile_path.blank? + f.sourcefile_path.relative_path_from(f.tap.path) end github_remote_path(f.tap.remote, path)