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
Mongodb "--version" output changed in 4.3 or 4.4 #487
Comments
this is because its probably logged wrong it seems like for 4.3 or 4.4 the output of Command Output
|
actually, i cannot reproduce i, what system are you trying to run this on? (i will still change to the suggested |
Yeah I'm a bit surprised I'm the first to see this. I'm running this in a docker image built from the official
|
d8d6749 implements the mentioned |
🎉 This issue has been resolved in version 7.0.0-beta.47 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Great thanks! |
closing, because included in |
🎉 This issue has been resolved in version 7.0.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Version: 7.0.0-beta-46
Mongo version: v4.4.4
Node verson: 14.15.5
When using a pre-installed system binary and passing MONGOMS_SYSTEM_BINARY - the version isn't parsed. In the past this only caused a warning but new versions of the beta throw the error
Couldnt find an version from system binary output!
so my tests fail.On my system the
version
command returns this format:The problem seems to be this line:
mongodb-memory-server/packages/mongodb-memory-server-core/src/util/MongoBinary.ts
Line 94 in e48976d
For me this command
spawnSync(binaryPath, ['--version']).toString()
produces[object Object]
which is why the regex fails to match the value.To get the actual output I need to run
spawnSync(binaryPath, ['--version']).stdout.toString()
instead.The text was updated successfully, but these errors were encountered: