-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
Remove nodejs-6_x which is about to enter EOL #58976
Conversation
/cc @adisbladis |
7eec505
to
5fc3df7
Compare
- Remove nodejs-6_x - Set nodejs / nodejs-slim to nodejs-8_x / nodejs-slim-8_x - Re-generate node2nix generated files using nodejs-8_x instead
5fc3df7
to
0e296d5
Compare
I had to repair a few packages:
Still broken:
|
Hm yeah so node2nix failed to resolve all dependencies which leads to npm trying to fetch/install whatever is missing ;/ Oh dear, looking at the |
@gilligan @adisbladis Quite some time ago (according to my stash it was in the end of october) I abandoned the node2nix approach and repackaged it successfully using yarn2nix (and nodejs 8) because I also think that right now it's way too hacky. |
As I'm fairly interested in keeping
Unless anybody else wants to take over, I can attempt to do an update of |
Unfortunately it seems as it's not possible to regenerate the EDIT: it seems as there's a problem with the |
This diff regenerates the package sets for `codimd` and `codemirror` using NodeJS 8 to get rid of the deprecated[1] `nodejs-6_x`. Additionally the following issues had to be fixed during the update: * The package `js-sequence-diagram` has been removed from the NPM registry and was replaced by a security holding package[2]. The package was published by a third-party (upstream only supports bower builds), so it's unclear whether the package will re-appear[3]. As the tarballs still exist (and the hash didn't change), the package will be loaded manually into the build env. * For the babel-related packages, `dontNpmInstall` will be set for `node2nix` installs as some of those packages bundle a `package-lock.json` that triggers `ENOTCACHED` errors for optional dependencies[4]. For now it should be sufficient to use NodeJS 8 (`codimd` v1.2.x doesn't support NodeJS 10), in the long term we probably want to use `yarn2nix` here with NodeJS 10. This is much rather a fix to get rid of another NodeJS 6 dependency. [1] `nodejs-6_x` is about to be deprecated, see NixOS#58976 [2] https://www.npmjs.com/package/js-sequence-diagrams, https://github.com/npm/security-holder [3] bramp/js-sequence-diagrams#212 [4] svanderburg/node2nix#134
#59118 for |
Just checking, @gilligan / @adisbladis that with #59118 now open, everything is fine? This PR can be merged? The other one looks ready to me. |
This diff regenerates the package sets for `codimd` and `codemirror` using NodeJS 8 to get rid of the deprecated[1] `nodejs-6_x`. Additionally the following issues had to be fixed during the update: * The package `js-sequence-diagram` has been removed from the NPM registry and was replaced by a security holding package[2]. The package was published by a third-party (upstream only supports bower builds), so it's unclear whether the package will re-appear[3]. As the tarballs still exist (and the hash didn't change), the package will be loaded manually into the build env. * For the babel-related packages, `dontNpmInstall` will be set for `node2nix` installs as some of those packages bundle a `package-lock.json` that triggers `ENOTCACHED` errors for optional dependencies[4]. For now it should be sufficient to use NodeJS 8 (`codimd` v1.2.x doesn't support NodeJS 10), in the long term we probably want to use `yarn2nix` here with NodeJS 10. This is much rather a fix to get rid of another NodeJS 6 dependency. [1] `nodejs-6_x` is about to be deprecated, see #58976 [2] https://www.npmjs.com/package/js-sequence-diagrams, https://github.com/npm/security-holder [3] bramp/js-sequence-diagrams#212 [4] svanderburg/node2nix#134 (cherry picked from commit 5feec42, PR #59118)
Shouldn't we remove I guess this can be done as a follow-up PR anyway. |
Backported |
Motivation for this change
nodejs 6.x is entering EOL soon, so we should get rid of it - Fixes #58953
Things done