Open giovariot opened 8 years ago
This seems to be because Homebrew tests for an empty installation, and it's looking in /usr/local/Cellar/grantlee/0.5.1
which only gets so-called "metafiles" like AUTHORS
and README
. Homebrew doesn't count these as real files, and concludes nothing was installed and errors out.
Adding a dummy file in the formula to be installed would get around this.
A hackish way to do this would be to manually disable this checking functionality in Homebrew itself.
# /usr/local/Library/Homebrew/keg.rb
def empty_installation?
# HACK: ignore "empty installations"
return false
Pathname.glob("#{path}/**/*") do |file|
next if file.directory?
basename = file.basename.to_s
next if Metafiles.copy?(basename)
next if %w[.DS_Store INSTALL_RECEIPT.json].include?(basename)
return false
end
true
end
https://github.com/Homebrew/homebrew/blob/master/Library/Homebrew/keg.rb#L153-L163
Here is the error given:
And here is the full output
gist: https://gist.github.com/giovariot/288f7f851d884acd1169