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

homebrew: use homebrew-core for fallback link #134

Merged

Conversation

josephfrazier
Copy link
Member

This makes it so that homebrew formulae in other taps are properly
linked to their dependencies in the default tap. For example:

https://github.com/Homebrew/homebrew-science/blob/1acf4f470fc8c87f6bcbf19b721ebcd09c7fb025/octave.rb#L44

shows a dependency on autoconf, but the relativeFile resolver points to:

https://github.com/Homebrew/homebrew-science/blob/1acf4f470fc8c87f6bcbf19b721ebcd09c7fb025/autoconf.rb

which does not exist. Instead, use a new resolver to fall back to:

https://github.com/Homebrew/homebrew-core/blob/master/Formula/autoconf.rb

This makes it so that homebrew formulae in other taps are properly
linked to their dependencies in the default tap. For example:

https://github.com/Homebrew/homebrew-science/blob/1acf4f470fc8c87f6bcbf19b721ebcd09c7fb025/octave.rb#L44

shows a dependency on autoconf, but the relativeFile resolver points to:

https://github.com/Homebrew/homebrew-science/blob/1acf4f470fc8c87f6bcbf19b721ebcd09c7fb025/autoconf.rb

which does not exist. Instead, use a new resolver to fall back to:

https://github.com/Homebrew/homebrew-core/blob/master/Formula/autoconf.rb
@stefanbuck
Copy link
Member

LGTM 👍 Just one note. I know our code coverage is quite low, but I would like to improve it. Therefore if you could write a test for homebrew-file.js that would be a first step in the right direction.

@josephfrazier josephfrazier merged commit 730815c into OctoLinker:master Aug 3, 2016
@josephfrazier josephfrazier deleted the homebrew-fallback-to-core branch August 3, 2016 03:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants