-
Notifications
You must be signed in to change notification settings - Fork 209
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
accept URL as well as domain name for --mirror argument #252
Conversation
7493daf
to
e953890
Compare
tested using
|
@ekalinin hi Eugene, anything i can do on my side to progress this change? |
Please, add:
|
e953890
to
6d863af
Compare
@ekalinin hi Eugene, updated and repushed. could you please take another look? |
do not assume that the mirror mirrors the full directory structure of nodejs.org, actually, some mirros just have the part of `https://nodejs.org/download/release/` mirrored. for instance, https://npm.taobao.org/mirrors/node, and do not assume that the mirror always put the nodejs mirror in its `download/` directory. in this change, a URL is accepted as well as a domain name. if a mirror does not have "://" in it is specified, the default "https://<domain_name>/download/releases" URL is used. this change addresses the comment of ekalinin#208 (comment) also, ignore E127 for multi-line `with` statement, see discussion at PyCQA/pycodestyle#316, which is related to E126, but it also applies this case. Signed-off-by: Kefu Chai <[email protected]>
node.js and io.js already merged back together since v4.0. and iojs.org redirects to nodejs.org. so, it does not make sense to offer this option for new developers using node.js >= 4.0 Signed-off-by: Kefu Chai <[email protected]>
6d863af
to
7d3bf01
Compare
@ekalinin If you have some time available, could you please look again at this pull request and make a new release? The --mirror improvement would be very helpfull to run nodeenv behind firewall in restricted environments. If a new release is made, would it be possible to also publish the source version again? (#251) |
@ekalinin hi Eugene ping? |
thank you, @ekalinin . fully understand. take care. |
thanks @tchaikov! take care too |
do not assume that the mirror mirrors the full directory structure of
nodejs.org, actually, some mirros just have the part of
https://nodejs.org/download/release/
mirrored. for instance,https://npm.taobao.org/mirrors/node, and do not assume that the mirror
always put the nodejs mirror in its
download/
directory.in this change, a URL is accepted as well as a domain name. if a mirror
does not have "://" in it is specified, the default
"https://<domain_name>/download/releases" URL is used.
this change addresses the comment of
#208 (comment)
Signed-off-by: Kefu Chai [email protected]