-
-
Notifications
You must be signed in to change notification settings - Fork 188
add MONGOMS_SKIP_MD5_CHECK environment option #114
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 MONGOMS_SKIP_MD5_CHECK environment option #114
Conversation
dd67fc8 to
a8d3bcc
Compare
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.
Hi, thanks you for this PR ! I've done a couple of comments, I hope I've been clear enough :)
7ca8471 to
f2f3508
Compare
Response to the comment typegoose#114 (comment)
daedb1d to
5cbd7cf
Compare
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.
Great job! I'm ready to merge this PR.
But can you make last two small improvements:
- move
const mongoDBArchiveMd5 = await this.download(${downloadUrl}.md5);insidecheckMd5method. It clean ups a little bit the code. And if disabled checking then do not download md5 at all. - rename
checkMd5tocheckMD5for better view
@AJRdev any other additions?
|
@nodkz Just a little change request for consistency regarding a recent PR but out of that everything seems good to me :) |
For details see typegoose#114 (comment) and nodkz comment after approving pull request
|
Thanks to all for amazing Pull Request! Especially regards to @dimitriylol ;) |
|
🎉 This PR is included in version 2.8.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
…ptions * fix: add error handling in postinstall * feat: add MONGOMS_SKIP_MD5_CHECK for skipping md5 check * refactor: add return type in checkMd5 signature Response to the comment typegoose/mongodb-memory-server#114 (comment) * refactor: add checkMD5 parameter to the MongoBinaryDownload constructor For details see typegoose/mongodb-memory-server#114 (comment) * refactor: style changes and function renaming For details see typegoose/mongodb-memory-server#114 (comment) and nodkz comment after approving pull request
…ptions * fix: add error handling in postinstall * feat: add MONGOMS_SKIP_MD5_CHECK for skipping md5 check * refactor: add return type in checkMd5 signature Response to the comment typegoose/mongodb-memory-server#114 (comment) * refactor: add checkMD5 parameter to the MongoBinaryDownload constructor For details see typegoose/mongodb-memory-server#114 (comment) * refactor: style changes and function renaming For details see typegoose/mongodb-memory-server#114 (comment) and nodkz comment after approving pull request
There are several changes in this pull request:
FYI: md5 sum has been updated in the MongoDB mirror, so I removed my workaround in MongoBinary-test.js. Even this pull request currently isn't required, I think it's good to have such option for the future.