Skip to content
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

Made sure storm-replay is available before we try to use it. #22

Merged
merged 2 commits into from
Jun 11, 2020

Conversation

GaryIrick
Copy link
Contributor

This makes sure we don't try to use storm-replay if it's not available. I believe this fixes a problem where a parse on MacOS or Linux would fail if the storm-replay dependency has not been installed.

You could probably drop the OS check and just check for storm, but I don't know what the expectations are on Windows, so I left it alone.

Copy link
Member

@jnovack jnovack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make the required changes. Thank you.

index.js Outdated
@@ -115,7 +115,7 @@ const openArchive = function (file, noCache) {
// ensure non-breaking changes
exports.get = (file, archive) => {
log.debug('get() : ' + file + ', ' + archive);
if (['darwin', 'linux'].indexOf(process.platform) > -1) {
if (storm && ['darwin', 'linux'].indexOf(process.platform) > -1) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can go ahead and remove the OS check. Past me was being lazy.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not test storm-extract on Windows, so I automatically excluded it.

Your method is "more correct", which permits non-storm-extract on OSX/Linux (why someone would want to wait? No clue.)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to get storm-replay to build, I wasn't able to in Node 12.6.3. So it wasn't an option for me, unless I just missed something in the build setup.

I'll update that check tonight when I get a few minutes. Thanks for taking a look at it so quickly.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As stated in issue #21, storm-replay will not build in node12 due to deprecated calls. It will need to be updated. As of right now, storm-replay builds in node v10 and node-gyp v6.1.0.

storm-replay DOES have an issue with node-gyp v7.

@GaryIrick GaryIrick requested a review from jnovack June 11, 2020 04:50
@jnovack jnovack merged commit 01d652e into nydus:master Jun 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants