From b8aa808b9db409df0c84438cc641624aca059bf1 Mon Sep 17 00:00:00 2001 From: Claudia Date: Mon, 27 Apr 2020 15:10:43 +0200 Subject: [PATCH] Make sure `DEFAULT_DIRS` values are Pathnames This commit fixes the PR #7417 bug. The call to `canonicalize` needs to wrap `DEFAULT_DIRS`, not the other way around. This was mixed up in PR #7417 due to an oversight. --- Library/Homebrew/cask/config.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cask/config.rb b/Library/Homebrew/cask/config.rb index 4ca3b367a9..a415b74d78 100644 --- a/Library/Homebrew/cask/config.rb +++ b/Library/Homebrew/cask/config.rb @@ -69,7 +69,7 @@ module Cask attr_accessor :explicit def initialize(default: nil, env: nil, explicit: {}) - @default = DEFAULT_DIRS.merge(self.class.canonicalize(default)) if default + @default = self.class.canonicalize(DEFAULT_DIRS.merge(default)) if default @env = self.class.canonicalize(env) if env @explicit = self.class.canonicalize(explicit)