-
Notifications
You must be signed in to change notification settings - Fork 262
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 custom binary hosting mirror #170
Conversation
a7df8b3
to
4c77708
Compare
I'm hesitant to accept this due to security concerns. So let's work together to brainstorm here if there is a safe way to allow this. My concern is that a malicious application could set this ENV variable (perhaps by writing to ~/.bash_profile) and then a user would unknowingly be installing binaries from a different location. Possible solutions:
|
How about follow npm install config options? $ npm install node-inspector --profiler_binary_host_mirror=http://npm.taobao.org/mirrors/node-inspector/ And the |
4c77708
to
bab7404
Compare
Latest fix looks good. Can you think of a good way to test this on travis? |
OK, I try to add test for this change. |
bab7404
to
61ccff7
Compare
@springmeyer unittest added. |
61ccff7
to
1b9636f
Compare
@springmeyer travis pass now |
+1 |
@springmeyer review again? |
We need this in china 👍 |
+1 |
2 similar comments
👍 |
👍 |
@springmeyer can you review this again? |
Great, @fengmk2 will merge once you can:
Sound good? Thanks for this. |
Sure, I will do it today. |
Like we setup a mirror site for node-inspector at https://npm.taobao.org/mirrors/node-inspector/ These mirrors try to help people download binary files from China.
1b9636f
to
2e5590a
Compare
@springmeyer rebase and docs done! |
Thanks @fengmk2! |
Support custom binary hosting mirror
Great! |
This updates the sqlite3 dependency to the latest available version. Among other things, this should enable people interested in hosting their own copy of jsbin to specify binary mirrors of the sqlite3 dependency. The reason this requires an update is that the current version being used depends on a version of node-pre-gyp that doesn't support mirroring – see mapbox/node-pre-gyp#170 for more info on this feature.
This updates the sqlite3 dependency to the latest available version. Among other things, this should enable people interested in hosting their own copy of jsbin to specify binary mirrors of the sqlite3 dependency. The reason this requires an update is that the current version being used depends on a version of node-pre-gyp that doesn't support mirroring – see mapbox/node-pre-gyp#170 for more info on this feature.
Like we setup a mirror site for node-inspector at
https://npm.taobao.org/mirrors/node-inspector/
These mirrors try to help people download binary files from China.