-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
Updating the Homebrew Command #2943
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. |
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! |
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/core
has anlohmann-json
formula. This means that, even after tapping tonlohmann/json
, the user has to specify what formula should be used. and runningbrew install nlohmann-json
will use thehomebrew/core
instead 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_json
or more explicitly,brew install nlohmann/json/nlohmann_json
. This distinguish it from the existing formulahomebrew/core/nlohmann-json
which I believe is not being maintained by people in this repo.Pull request checklist
Read the Contribution Guidelines for detailed information.
include/nlohmann
directory, runmake amalgamate
to create the single-header filesingle_include/nlohmann/json.hpp
. The whole process is described here.Please don't
#ifdef
s or other means.