Add automation for updating `libuv` dependency
Description
Add a Github Action that checks for new versions of the libuv
C library, and creates a PR to update it if a newer version than the one present in the repo is found.
Refs: https://github.com/nodejs/security-wg/issues/828
Details
Currently, if one runs the script to update to version 1.44.2
, the uv
folder will end up with changes (even though Node's libuv
version is also at 1.44.2
):
bash tools/dep_updaters/update-libuv.sh 1.44.2
# (...script output....)
git status
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git restore <file>..." to discard changes in working directory)
# modified: deps/uv/include/uv/win.h
# modified: deps/uv/src/win/poll.c
This is due to a change made when merging https://github.com/nodejs/node/pull/42340. More specifically, see https://github.com/nodejs/node/pull/42340#issuecomment-1290894883. This accounts for the differences between Node's repo and upstream.
Since this seems to be a change that will be reverted in the next release (as per the comment), it should already be taken care of when the update-libuv.sh
script is run for that next version.
cc: @lpinca