-
Notifications
You must be signed in to change notification settings - Fork 2k
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
fix: correct update script to support version argument again #2156
base: main
Are you sure you want to change the base?
Conversation
@@ -137,12 +137,16 @@ function get_config() { | |||
# | |||
# The result is a list of valid versions. | |||
function get_versions() { | |||
shift |
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.
I'm really bad as (ba)sh scripting, so there's probably a better solution to this. It works, tho - both with and without the version arguments
Not sure how to get around the shellcheck violation. We do call it with arguments (from a different file) Line 56 in ebd48c9
|
@nodejs/docker PTAL |
I'll need a bit of time to go through this. By the way, just wondering if we should consider using AI tools to assist with code reviews and suggestions? I've been trying out https://coderabbit.ai/ recently and found it quite helpful. It provides some valuable suggestions and even catches some errors. Could improve the efficiency for such a busy volunteer team like us 😆 |
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.
Copilot reviewed 1 out of 3 changed files in this pull request and generated no suggestions.
Files not reviewed (2)
- functions.sh: Language not supported
- update.sh: Language not supported
We keep getting key updates from the update script for unchanged node versions, even when the script passes e.g.
./update.sh 22
. This is due to a regression in #1307 where theget_versions
function no longer looked at its arguments for which version directories to load.I also got
./update.sh: line 240: pids[@]: unbound variable
, so I moved its declaration.I also couldn't resist
Object.keys() -> Object.entires()
since we were accessing the values in the loopThis should remove the need for PRs such as #2151, as the script should just update the versions with an actual node version change:
docker-node/build-automation.mjs
Line 92 in ebd48c9