-
Notifications
You must be signed in to change notification settings - Fork 3.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
build: upgrade to use nodev20 #11410
Conversation
Signed-off-by: Rui Chen <rui@chenrui.dev>
I remember you had a comment on the node version before, right? @jmeridth |
@terrytangyuan was regarding #10126 my issue was that I was able to get a feature working with v18 and then we (argo-workflows) went back to v16. Feature broke. Going to v20 would be awesome. |
Thanks. Please fix the CI build failures. |
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.
A few other places we should update too, like the Nixfiles in dev/nix/flake.nix
.
EDIT: actually in flake.nix
not node-env.nix
, my bad. See below comments
@@ -6,7 +6,7 @@ | |||
"src" | |||
], | |||
"scripts": { | |||
"build": "rm -Rf dist && NODE_OPTIONS='' NODE_ENV=production webpack --mode production --config ./src/app/webpack.config.js", | |||
"build": "rm -Rf dist && NODE_OPTIONS='--openssl-legacy-provider' NODE_ENV=production webpack --mode production --config ./src/app/webpack.config.js", | |||
"start": "NODE_OPTIONS='--no-experimental-fetch' webpack-dev-server --config ./src/app/webpack.config.js", | |||
"lint": "tslint --fix -p ./src/app", | |||
"test": "jest" |
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.
on line 15 below, engines.node
should be updated as well
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.
let me add that.
Signed-off-by: Rui Chen <rui@chenrui.dev>
do you have any guide about it? |
Signed-off-by: Rui Chen <rui@chenrui.dev>
My bad, it's actually in If you're not sure, I'm ok approving without so long as CI passes. This is a good change to have and we can update Nix in a follow-up PR 🙂 |
@agilgur5 I can push the Nix stuff, I was the one who ported the build process over to Nix. |
EDIT: |
Build error is this: "Error: error:0308010C:digital envelope routines::unsupported" |
@isubasinghe have you considered presenting on Nix to community meeting? Nix is new hotness. |
Signed-off-by: Alex Collins <alexec@users.noreply.github.com>
@alexec unfortunately my timezone makes attending the community meetings near impossible :( |
https://github.com/argoproj/argo-workflows/actions/runs/5676115276/job/15382363976
Would anyone like to help fix that CI failure? |
Tracking in #11459 |
Ah, this is from the |
2 decades for some more mainstream attention 😅
I have yet to go to one but I imagine you could pre-record something which could just be played during the meeting? |
@agilgur5 I did use node2nix, its a bit of a manual process to use it with flakes however. Also yeah I think I could probably pre-record something instead, will talk to someone about this later. |
Signed-off-by: Rui Chen <rui@chenrui.dev> Signed-off-by: Alex Collins <alexec@users.noreply.github.com> Co-authored-by: Yuan Tang <terrytangyuan@gmail.com> Co-authored-by: Alex Collins <alexec@users.noreply.github.com>
Signed-off-by: Rui Chen <rui@chenrui.dev> Signed-off-by: Alex Collins <alexec@users.noreply.github.com> Co-authored-by: Yuan Tang <terrytangyuan@gmail.com> Co-authored-by: Alex Collins <alexec@users.noreply.github.com> Signed-off-by: Dillen Padhiar <dillen_padhiar@intuit.com>
👋 node 16 is gonna be EOL on 11 Sep 2023, right now, building with node v20 would have
digital envelope routines::unsupported
issue, thus updating the build to use v20.closes #11404
relates to Homebrew/homebrew-core#137118
cc @templarfelix @JPZ13