-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
build: make icu download path customisable #3200
build: make icu download path customisable #3200
Conversation
Lgtm
I tried to keep the download path isolated (but didn't make it
configurable), looks like that succeeded.
|
@@ -833,11 +839,14 @@ def configure_intl(o): | |||
] | |||
def icu_download(path): | |||
# download ICU, if needed | |||
if not os.path.exists(options.download_path): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something of an anti-pattern, this. Whether the path exists doesn't say anything about it being accessible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use os.access
instead?
lgtm! |
LGTM |
6c94583
to
92c7a6f
Compare
@bnoordhuis I slightly tweaked the error message and now check for writability through |
Better, I suppose. LGTM. |
This makes it easier to store icu tarballs outside of the node.js directory which is useful in our CI where git directories are scrubbed between runs. PR-URL: nodejs#3200 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Rod Vagg <rod@vagg.org>
92c7a6f
to
a214905
Compare
Just for the record:
|
This makes it easier to store icu tarballs outside of the node.js directory which is useful in our CI where git directories are scrubbed between runs. PR-URL: #3200 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Rod Vagg <rod@vagg.org>
landed in v4.x-staging in 9136359 |
This makes it easier to store icu tarballs outside of the node.js directory which is useful in our CI where git directories are scrubbed between runs.
/R=@srl295, @rvagg