-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
Add macOS installation instructions with Homebrew #173
Conversation
@Aaron-Rumpler Thank you very much for packaging Numbat! That was quick 😄 It might be worth reading what I wrote here: #170 (comment) (the first bullet point). It would be great if the Homebrew package would also do this. But I also realize that it would require a different installation method, because you don't get those files via |
Installing the |
Looks like this can (and usually is) done at compile-time. So I just need to be able to pass in the path to the |
Ok, just to see if we're on the same page: Numbat tries to load its modules from a (ordered) list of 'module' paths. New paths can be added at runtime by the user via If I understand it correctly, there are two approaches we could take:
Or we could do both. What do you think? |
I definitely prefer the compile-time approach. Apart from providing more flexibility, it will also support users who have installed Homebrew into non-default locations (and means we're not hardcoding assumptions about Homebrew into Numbat), as well as any other cases of installing into other locations. What about replacing the hardcoded One point to make though is that Homebrew will put the |
Added in c666cd7. I also wrote some documentation for package maintainers: https://numbat.dev/doc/cli-installation.html#guidelines-for-package-maintainers The standard paths like |
Oh, ok. I don't think that's a problem, except for the longer path in the error message. |
I've got the module directory installing with Homebrew. Should we include the examples as well? |
I'd argue that those paths are specific to only an install in the default location, and that it would be desirable for additional installs in different locations to not reference them (to keep them isolated from the install in the default location). For example, if someone has the latest stable release installed in the default location, and a development build installed elsewhere, that the development build shouldn't reference the default install's modules (especially as they may differ between different versions?). What do you think? |
👍 I think we can leave out the examples for now. There are too many things in there, like "this should fail with an error" examples and prelude-tests. Those are not interesting for most users. The more polished examples are available in the documentation (https://numbat.dev/doc/examples.html). I was thinking if it would be valuable to install the documentation, as static HTML files. But I'm not really sure how many users would actually read that. It's probably much easier to just refer to https://numbat.dev/doc/, and assume that an internet connection is available 99% of the time. |
You convinced me: 87a4ed5 |
This is now available in 1.6.3. Thank you |
Great. I'll update the formula and put in a PR. One other thought, for a case like installing just the executable (so no |
|
Added to Homebrew in Homebrew/homebrew-core#145662