Homebrew / homebrew-bundle

📦 Bundler for non-Ruby dependencies from Homebrew, Homebrew Cask and the Mac App Store.
MIT License
5.29k stars 284 forks source link

Support `__FILE__` in Brewfiles #1365

Closed Bo98 closed 3 months ago

Bo98 commented 3 months ago

__FILE__ in Brewfiles currently is set to (eval at ...). Given we never read the Brewfile without creating a DSL class, we can simplify things to pass the path and use that in instance_eval to set the __FILE__ to the real path.