-
Notifications
You must be signed in to change notification settings - Fork 16.2k
docs: update node upgrade doc #13891
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
Conversation
docs/development/upgrading-node.md
Outdated
6. Read `patches/common/v8/README.md` to see which patchfiles came from the previous version of V8 and therefore need to be removed. | ||
- Delete each patchfile referenced in `patches/common/v8/README.md` | ||
7. Apply all patches with the `get-patch` script: | ||
- `./script/get-patch --repo src/v8 --output_-dir patches/v8 --commit abc123 def456 ... --filename backport_abc123.patch cherry-pick_def456.patch` |
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.
--output_-dir
? )
docs/development/upgrading-node.md
Outdated
6. Read `patches/common/v8/README.md` to see which patchfiles came from the previous version of V8 and therefore need to be removed. | ||
- Delete each patchfile referenced in `patches/common/v8/README.md` | ||
7. Apply all patches with the `get-patch` script: | ||
- `./script/get-patch --repo src/v8 --output_-dir patches/v8 --commit abc123 def456 ... --filename backport_abc123.patch cherry-pick_def456.patch` |
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.
--filename backport_abc123.patch cherry-pick_def456.patch
Can we "recommend" to use default patchfile names here? Simply by omitting the --filename
arg.
docs/development/upgrading-node.md
Outdated
@@ -115,7 +87,7 @@ We need to generate a patch file from each patch applied to V8. | |||
electron/vendor/libchromiumcontent$ git checkout upgrade-to-chromium-X | |||
electron/vendor/libchromiumcontent$ cd ../.. | |||
electron$ git add vendor | |||
electron$ git commit -m "update submodule referefences for node and libc" | |||
electron$ git commit -m "update submodule references for node and libc" |
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.
and libc"
Probably should read "libcc".
docs/development/upgrading-node.md
Outdated
@@ -115,7 +87,7 @@ We need to generate a patch file from each patch applied to V8. | |||
electron/vendor/libchromiumcontent$ git checkout upgrade-to-chromium-X | |||
electron/vendor/libchromiumcontent$ cd ../.. | |||
electron$ git add vendor | |||
electron$ git commit -m "update submodule referefences for node and libc" | |||
electron$ git commit -m "update submodule references for node and libc" | |||
electron$ git pso upgrade-to-chromium-62 |
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.
What's git pso
?
docs/development/upgrading-node.md
Outdated
- `git rm` the patchfiles | ||
- edit `patches/v8/README.md` | ||
- edit `patches/common/v8/README.md` | ||
- commit these removals | ||
4. Inspect Node [repo](https://github.com/electron/node) to see what patches upstream Node | ||
used with their v8 after bumping its version | ||
- `git log --oneline deps/V8` |
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.
deps/V8
Should be "deps/v8".
docs/development/upgrading-node.md
Outdated
8. Update `patches/v8/README.md` with references to all new patches that have been added so that the next person will know which need to be removed. | ||
6. Read `patches/common/v8/README.md` to see which patchfiles came from the previous version of V8 and therefore need to be removed. | ||
- Delete each patchfile referenced in `patches/common/v8/README.md` | ||
7. Apply all patches with the `get-patch` script: |
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.
the
get-patch
script
Should it be a link to https://github.com/electron/libchromiumcontent/blob/master/script/README.md#get-patch ?
Update the
upgrading-node.md
doc for latest paths and script commands./cc @alexeykuzmin
Checklist