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

Support extracting compiled binary from local offline mirror #459

Merged
merged 1 commit into from May 17, 2019

Conversation

murtadha
Copy link

See #458

This makes it possible to pass in a path to a local file using the {module_name}_binary_host_mirror command line argument (or env variable if using Yarn). The file:// prefix is used to determine that this is pointing to a local offline mirror, instead of a URL.

lib/install.js Outdated
place_binary(from,to,opts,after_place);
var fileName = from.startsWith('file://') && from.replace(/^file:\/\//, '');
if (fileName) {
extract_from_local(fileName, to, callback);
Copy link
Contributor

Choose a reason for hiding this comment

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

You're passing callback here, but I think you meant after_place. Right now, if the extract_from_local function fails, (and it can, with file not found for instance), it'll not potentially fallback to building from source, which is the role of after_place.

@murtadha
Copy link
Author

murtadha commented May 17, 2019

@nicolasnoble, thanks for the quick review. I made the changes, updated the commit, and force-pushed, but not sure this is the preferred way to contribute here.

Would you prefer I make a commit on top of it to fix this one line instead?

@nicolasnoble
Copy link
Contributor

I'm fine either way :-)

@nicolasnoble nicolasnoble merged commit 590da56 into mapbox:master May 17, 2019
@nicolasnoble
Copy link
Contributor

I'll publish this as 0.13.1 shortly.

@murtadha
Copy link
Author

Than's great, thanks so much @nicolasnoble! When do you expect it to be published? Looking to pull this into our repo soon so we can fix this longstanding issue :)

Thanks for the quick turnaround!!

@murtadha
Copy link
Author

Hey @nicolasnoble, when are you planning to publish the new release? We are waiting on this to unblock issues we are facing with our environment :)

@murtadha
Copy link
Author

pinging this @nicolasnoble

hyj1991 pushed a commit to X-Profiler/node-pre-gyp that referenced this pull request Jun 16, 2023
Support extracting compiled binary from local offline mirror
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants