mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Merge pull request #15291 from EricFromCanada/untapped-formula-path
formula: consider arbitrary formula source paths
This commit is contained in:
commit
4ddebd9bd5
@ -2199,7 +2199,7 @@ class Formula
|
||||
"sha256" => resource("ruby-source").checksum.hexdigest,
|
||||
}
|
||||
elsif !self.class.loaded_from_api && path.exist?
|
||||
hsh["ruby_source_path"] = path.relative_path_from(tap.path).to_s
|
||||
hsh["ruby_source_path"] = (path.relative_path_from(tap.path).to_s if tap)
|
||||
hsh["ruby_source_checksum"] = {
|
||||
"sha256" => Digest::SHA256.file(path).hexdigest,
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user