-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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: use pathlib for paths #47581
build: use pathlib for paths #47581
Conversation
6d9d20c
to
495b1fc
Compare
@nodejs/python |
495b1fc
to
aa2fe83
Compare
aa2fe83
to
fbc3909
Compare
fbc3909
to
289a07d
Compare
289a07d
to
66e508a
Compare
@VoltrexKeyva Can you please create a pull request for all the non-pathlib changes so we can see if we can get that one to pass the tests and land first? |
@cclauss fortunately there are no failures, should we land this now? |
Nice! Two approvals are above. |
Commit Queue failed- Loading data for nodejs/node/pull/47581 ✔ Done loading data for nodejs/node/pull/47581 ----------------------------------- PR info ------------------------------------ Title build: use pathlib for paths (#47581) Author Mohammed Keyvanzadeh (@VoltrexKeyva) Branch VoltrexKeyva:use-pathlib -> nodejs:main Labels build, python, author ready, needs-ci Commits 1 - build: use pathlib for paths Committers 1 - Mohammed Keyvanzadeh PR-URL: https://github.com/nodejs/node/pull/47581 Reviewed-By: Yagiz Nizipli Reviewed-By: Christian Clauss ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/47581 Reviewed-By: Yagiz Nizipli Reviewed-By: Christian Clauss -------------------------------------------------------------------------------- ⚠ Commits were pushed since the last review: ⚠ - build: use pathlib for paths ℹ This PR was created on Sun, 16 Apr 2023 14:21:56 GMT ✔ Approvals: 2 ✔ - Yagiz Nizipli (@anonrig): https://github.com/nodejs/node/pull/47581#pullrequestreview-1388073872 ✔ - Christian Clauss (@cclauss): https://github.com/nodejs/node/pull/47581#pullrequestreview-1388196158 ✔ Last GitHub CI successful ℹ Last Full PR CI on 2023-05-02T14:23:08Z: https://ci.nodejs.org/job/node-test-pull-request/51578/ - Querying data for job/node-test-pull-request/51578/ ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncuhttps://github.com/nodejs/node/actions/runs/4863726456 |
@cclauss this'll need an approval again, as new changes invalidates the older approvals. |
Landed in d2156f1 |
Rock & Roll... Thanks for doing this! |
Use Python's `pathlib` library for paths and related operations instead of `os.path`. Refs: #47323 (comment) #47323 (comment) PR-URL: #47581 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Christian Clauss <cclauss@me.com>
Use Python's `pathlib` library for paths and related operations instead of `os.path`. Refs: #47323 (comment) #47323 (comment) PR-URL: #47581 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Christian Clauss <cclauss@me.com>
Use Python's `pathlib` library for paths and related operations instead of `os.path`. Refs: #47323 (comment) #47323 (comment) PR-URL: #47581 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Christian Clauss <cclauss@me.com>
Use Python's `pathlib` library for paths and related operations instead of `os.path`. Refs: nodejs#47323 (comment) nodejs#47323 (comment) PR-URL: nodejs#47581 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Christian Clauss <cclauss@me.com>
@@ -1766,39 +1768,39 @@ def icu_download(path): | |||
icu_config['variables']['icu_full_canned'] = 1 | |||
# --with-icu-source processing | |||
# now, check that they didn't pass --with-icu-source=deps/icu | |||
elif with_icu_source and os.path.abspath(icu_full_path) == os.path.abspath(with_icu_source): | |||
elif with_icu_source and Path(icu_full_path).resolve() == Path(with_icu_source).resolve(): |
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.
Ouch! icu_full_path
can actually be a URL here, and so this change breaks Windows downloading completely. Not good..
Use Python's
pathlib
library for paths and related operations instead ofos.path
.Refs: #47323 (comment) #47323 (comment)