Formula: record full path to non-core formula
If a formula is passed with a relative path, the build process might try to expand it in the wrong directory, where it doesn't exist. Fixes Homebrew/homebrew#22266.
This commit is contained in:
parent
e92fa147b3
commit
922a4f1b77
@ -28,7 +28,7 @@ class Formula
|
||||
def initialize name='__UNKNOWN__', path=nil
|
||||
@name = name
|
||||
# If we got an explicit path, use that, else determine from the name
|
||||
@path = path.nil? ? self.class.path(name) : Pathname.new(path)
|
||||
@path = path.nil? ? self.class.path(name) : Pathname.new(path).expand_path
|
||||
@homepage = self.class.homepage
|
||||
|
||||
set_spec :stable
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user