Skip to content

Commit 2d15e6a

Browse files
authored
feat: add support for rhel & coreos 8 (typegoose#288)
* Add support for rhel & coreos 8 * fix: update the static latest binary to be 4.0.14 Rhel 8 and coreos 8 only have builds starting from that static build
1 parent 6653542 commit 2d15e6a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

packages/mongodb-memory-server-core/src/util/MongoBinary.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ import debug from 'debug';
1313

1414
const log = debug('MongoMS:MongoBinary');
1515

16-
// TODO: return back `latest` version when it will be fixed in MongoDB distro (for now use 4.0.3 😂)
16+
// TODO: return back `latest` version when it will be fixed in MongoDB distro (for now use 4.0.14 😂)
1717
// More details in https://github.com/nodkz/mongodb-memory-server/issues/131
1818
// export const LATEST_VERSION = 'latest';
19-
export const LATEST_VERSION: string = '4.0.3';
19+
export const LATEST_VERSION: string = '4.0.14';
2020

2121
export interface MongoBinaryCache {
2222
[version: string]: string;

packages/mongodb-memory-server-core/src/util/MongoBinaryDownloadUrl.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,9 @@ export default class MongoBinaryDownloadUrl {
209209
let name = 'rhel';
210210
const { release } = os;
211211
if (release) {
212-
if (/^7/.test(release)) {
212+
if (/^8/.test(release)) {
213+
name += '80';
214+
} else if (/^7/.test(release)) {
213215
name += '70';
214216
} else if (/^6/.test(release)) {
215217
name += '62';

0 commit comments

Comments
 (0)