-
-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Updating the Homebrew Command #2943
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
Conversation
This resolves a conflict, and stops Homebrew from using the default formula.
|
I think this needs more attention. I just realised from some test that installing As we discussed on Twitter, if you are willing to drop the Update: I see. You formula has a Update: So, here is the updated Formula on |
I've submitted a PR on [homebrew/core](Homebrew/homebrew-core#83479) that updates their Formula. After that one is set, we can merge this and let users use the default formula, and we don't have to maintain two separate Formulas.
|
The PR at homebrew/core has been approved, and will be merged soon. So, I think this one can go after that one. |
nlohmann
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please also adjust the documentation in https://github.com/nlohmann/json/blob/develop/doc/mkdocs/docs/integration/package_managers.md#homebrew ? Thanks!
|
I think that should be done! |
nlohmann
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
|
Thanks! |
So, apparently,
homebrew/corehas anlohmann-jsonformula. This means that, even after tapping tonlohmann/json, the user has to specify what formula should be used. and runningbrew install nlohmann-jsonwill use thehomebrew/coreinstead of the formula located atnlohmann/json. To resolve this, the install command needs to be more explicit and point to your formula.You can point to your formula in two fashions,
brew install nlohmann_jsonor more explicitly,brew install nlohmann/json/nlohmann_json. This distinguish it from the existing formulahomebrew/core/nlohmann-jsonwhich I believe is not being maintained by people in this repo.Pull request checklist
Read the Contribution Guidelines for detailed information.
include/nlohmanndirectory, runmake amalgamateto create the single-header filesingle_include/nlohmann/json.hpp. The whole process is described here.Please don't
#ifdefs or other means.