Remove node 14 dns check in start.sh #304
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In node 18, node prefers ipv6 results in dns by default and so we override that with a flag. This flag does not exist on node 14.
So, we had a check by which we'd run node and if it crashed, we'd know the flag wasnt allowed and then not use it.
This is no longer needed because node 14 is no longer supported by zowe.
By removing this check, we save some startup time because we do not need to spawn node just to figure out if it works or not.
Note: you cannot even start with node14 anymore.
This is prevented in the "zwe" startup process by the validation phase of prepare.
It will say "node ${version} is less than the minimum level required of v${NODE_MIN_VERSION}"