brew
https://github.com/homebrew/brew
Ruby
🍺 The missing package manager for macOS
Formula#link_overwrite?
Sometimes we accidentally install files outside prefix. After we fix that, users will get nasty link conflict error. So we create a whitelist here to allow overwriting certain files. e.g. link_overwrite "bin/foo", "lib/bar" link_overwrite "share/man/man1/baz-*"
Edit
git clone [email protected]:homebrew/brew.git
cd brew
open Library/Homebrew/formula.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Formula-link_overwrite--for-pr
# Commit to gitgit add Library/Homebrew/formula.rbgit commit -m "better docs for Formula#link_overwrite?"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Formula-link_overwrite--for-pr
hub pull-request
# Celebrate!