-
-
Notifications
You must be signed in to change notification settings - Fork 184
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
Auto-download of binaries on install #95
Comments
@guillaumervls You should use the environnement variable MONGOMS_DOWNLOAD_DIR that specify a path where to download the mongodb binaries instead of the downloadDir option, because it will be used in the postinstall script as well :) |
Yes I saw that, I find it weird that I'd have to add env vars to opt-out of this. It breaks the simple |
In some cases, mongod binary may download about 1 minute the first time. Most developers don't know how to increase timeouts in test runners. And by default after 5 seconds tests halts. So for making testing without additional configuration, I decide to download latest version on postinstall script. It allows starting testing with zero configuration. |
Disabling downloading via |
Ok then isn't there a more appropriate place to download them (more local to the project) ? |
Or read a setting from |
Sounds sweet if we can provide some vars via package.json or even .dot file. Any proposal how it can be implemented? Need to use expierence from jest, babel, ts or any other implementation. I feel your tension and dissapoinment about current ways of configuration. no one has raised this problem yet and you are the first! So let's solve this problem. |
Cool ! From what I've seen popular modules like Husky, Babel, and Jest, use a IMHO, special config files like To implement this, I suggest the use of https://www.npmjs.com/package/pkg-conf which seems quite popular, and does exactly what we want. |
@guillaumervls if you have free time you may implement this feature with My current bandwidth till the end of year does not allow to do it myself 😞 And I will be very glad if somebody takes care about this feature. 🙏 |
@nodkz Just found this : https://www.npmjs.com/package/find-cache-dir (it's even more popular than Wouldn't it be even simpler to just use this instead of What do you think ? |
🎉 This issue has been resolved in version 2.7.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Hi and thanks for this module,
I use the
downloadDir
options in my code, so my home folder stays clean of.mongodb-binaries
. However thepostinstall
script is not aware of that and downloads in my home folder. Shouldn't the downloading of binaries afternpm install
be optional ? (I mean opt-in instead of opt-out)Am I missing something ?
Cheers
The text was updated successfully, but these errors were encountered: