Closed PhilMarsh closed 1 year ago
Thank you for reporting this issue @PhilMarsh I'll work on it this weekend.
Can replicate the problem by just changing the version numbers
export PYMONGOIM__MONGO_VERSION=4.0.0
python -m pymongo_inmemory.mongod # Runs 4.0.0
export PYMONGOIM__MONGO_VERSION=4.2.0
python -m pymongo_inmemory.mongod # Runs 4.2.0
export PYMONGOIM__MONGO_VERSION=4.0.0
python -m pymongo_inmemory.mongod # Runs 4.2.0 instead of 4.0.0
Describe the bug
downloader.download()
usesglob
to find the dir it just downloaded and extracted, but it doesn't include the expected dir name in the search, so it just returns the first thing it finds.This causes
Mongod
to use the wrong binary when there are multiple present.To Reproduce Script to reproduce the behavior:
Output:
Expected behavior
downloader.download()
should return thebin/
path matching the version it selected.Mongod
should use the version that was selected.Context: