mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 12:20:27 +01:00
`.github/workflows/tools.yml` creates a temp file `temp-output` in the workspace, which fails `git status` clean repo check. Also, the GHA checks out a new branch after the update script. Removes these checks in the `roll.py` to fix its run on the GHA. PR-URL: https://github.com/nodejs/node/pull/60277 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com> Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com> |
||
|---|---|---|
| .. | ||
| jinja2 | ||
| markupsafe | ||
| README.md | ||
| roll.py | ||
Chromium inspector (devtools) protocol
This directory contains scripts to update the Chromium inspector_protocol
to local at deps/inspector_protocol.
To run the roll.py, a local clone of the inspector_protocol project is required.
First, you will need to install Chromium's depot_tools, with fetch available
in your PATH.
$ cd workspace
/workspace $ mkdir inspector_protocol
/workspace/inspector_protocol $ fetch inspector_protocol
# This will create a `src` directory in the current path.
# To update local clone.
/workspace/inspector_protocol $ cd src
/workspace/inspector_protocol/src $ git checkout main && git pull
With a local clone of the inspector_protocol project up to date, run the following
commands to roll the dep.
$ cd workspace/node
/workspace/node $ python tools/inspector_protocol/roll.py \
--ip_src_upstream /workspace/inspector_protocol/src \
--node_src_downstream /workspace/node \
--force
# Add --force when you decided to take the update.
The roll.py requires the node repository to be a clean state (no unstaged changes)
to avoid unexpected overrides.