Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I point brew at a local formula? #1468

Closed
jaredjstewart opened this issue Nov 9, 2016 · 5 comments
Closed

How do I point brew at a local formula? #1468

jaredjstewart opened this issue Nov 9, 2016 · 5 comments

Comments

@jaredjstewart
Copy link

I have forked homebrew, edited a formula, and would like to make a pull request. The steps in the "Contributing to Homebrew" guide say to run:

brew install --build-from-source foo

It seems like there is a step missing: What do I need to do in order to point homebrew at my edited version of the formula?

@vitorgalvao
Copy link
Member

To be absolutely sure you’re pointing it at your modified formula, wherever it is located, give it the exact path to the file (brew install --build-from-source ./foo.rb, for example).

@MikeMcQuaid
Copy link
Member

@jaredjstewart It uses your edited version by default. Is it not behaving as expected? Did you use brew edit or brew audit? Thanks!

@jaredjstewart
Copy link
Author

My confusion arose from having Homebrew installed at /usr/local/Homebrew, but then also cloning the homebrew-core repo into ~/homebrew-core. Thanks for clearing this up!

@jaredjstewart
Copy link
Author

I pushed my changes here: https://github.com/jaredjstewart/homebrew-core/tree/fixJavaVersionForApacheGeode

However, I didn't open a PR yet, since I encountered and error when running brew audit --strict foo:

apache-geode:
  * version should not decrease
Error: 1 problem in 1 formula

Can you provide any guidance for how to go about fixing this problem? (The change I made was for apache-geode to require Java 1.8 instead of 1.8+, as Geode does not play well with Java 9.)

@MikeMcQuaid
Copy link
Member

@jaredjstewart Open the PR anyway, you can probably ignore that. Glad you got it sorted!

@Homebrew Homebrew locked and limited conversation to collaborators May 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants