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

build: make icu download path customisable #3200

Merged
merged 1 commit into from
Oct 8, 2015

Conversation

jbergstroem
Copy link
Member

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

@jbergstroem jbergstroem added the build Issues and PRs related to build files or the CI. label Oct 6, 2015
@mscdex mscdex added the i18n-api Issues and PRs related to the i18n implementation. label Oct 6, 2015
@srl295
Copy link
Member

srl295 commented Oct 6, 2015 via email

@@ -833,11 +839,14 @@ def configure_intl(o):
]
def icu_download(path):
# download ICU, if needed
if not os.path.exists(options.download_path):
Copy link
Member

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.

Copy link
Member Author

Choose a reason for hiding this comment

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

use os.access instead?

@rvagg
Copy link
Member

rvagg commented Oct 7, 2015

lgtm!

@jasnell
Copy link
Member

jasnell commented Oct 7, 2015

LGTM

@jbergstroem
Copy link
Member Author

@bnoordhuis I slightly tweaked the error message and now check for writability through os.access.

@bnoordhuis
Copy link
Member

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>
@jbergstroem jbergstroem merged commit a214905 into nodejs:master Oct 8, 2015
@jbergstroem
Copy link
Member Author

Just for the record:

[22:02:04]  <jbergstroem>   srl295: changes in https://github.com/nodejs/node/pull/3200 still look ok?
[22:03:52]  <jbergstroem>   rvagg: ^
[22:39:06]  <rvagg> jbergstroem: do it

jbergstroem added a commit that referenced this pull request Oct 8, 2015
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>
@MylesBorins
Copy link
Contributor

landed in v4.x-staging in 9136359

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues and PRs related to build files or the CI. i18n-api Issues and PRs related to the i18n implementation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants