Skip to content

Commit

Permalink
build 2 - v1.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian-Webster committed Dec 5, 2024
1 parent 67a010c commit 00e5333
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dist/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,17 @@ async function createDB(opts) {
logger.log('Using MySQL binary version:', binaryInfo.version, 'from URL:', binaryInfo.url);
}
catch (e) {
if (options.version && (0, semver_1.lt)((0, semver_1.coerce)(options.version), constants_1.MIN_SUPPORTED_MYSQL)) {
//The difference between the throw here and the throw above is this throw is because the selected "version" is not supported.
//The throw above is because the system-installed MySQL is out of date and "ignoreUnsupportedSystemVersion" is not set to true.
throw `The selected version of MySQL (${options.version}) is not currently supported by this package. Please choose a different version to use.`;
}
logger.error(e);
if (options.version) {
throw `A MySQL version ${options.version} binary could not be found that supports your OS (${os.platform()} | ${os.version()} | ${os.release()}) and CPU architecture (${os.arch()}). Please check you have the latest version of mysql-memory-server. If the latest version still doesn't support the version you want to use, feel free to make a pull request to add support!`;
}
throw `A MySQL binary could not be found that supports your OS (${os.platform()} | ${os.version()} | ${os.release()}) and CPU architecture (${os.arch()}). Please check you have the latest version of mysql-memory-server. If the latest version still doesn't support your OS and CPU architecture, feel free to make a pull request to add support!`;
}
if ((0, semver_1.lt)(binaryInfo.version, constants_1.MIN_SUPPORTED_MYSQL)) {
//The difference between the throw here and the throw above is this throw is because the selected "version" is not supported.
//The throw above is because the system-installed MySQL is out of date and "ignoreUnsupportedSystemVersion" is not set to true.
throw `The selected version of MySQL (${options.version}) is not currently supported by this package. Please choose a different version to use.`;
}
try {
binaryFilepath = await (0, Downloader_1.downloadBinary)(binaryInfo, options, logger);
}
Expand Down

0 comments on commit 00e5333

Please sign in to comment.