Skip to content

nodejs_(14|16): drop - #264358

Merged
RaitoBezarius merged 7 commits into
NixOS:masterfrom
RaitoBezarius:drop-nodejs
Nov 17, 2023
Merged

RaitoBezarius merged 7 commits into
NixOS:masterfrom
RaitoBezarius:drop-nodejs

Conversation

@RaitoBezarius

Copy link
Copy Markdown
Member

Description of changes

Security support EOLed for a while, dropping all the packages depending upon it.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.11 Release Notes (or backporting 23.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@github-actions github-actions Bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 6.topic: nodejs Node.js is a free, open-source, cross-platform JavaScript runtime environment labels Oct 30, 2023
@RaitoBezarius
RaitoBezarius force-pushed the drop-nodejs branch 3 times, most recently from 5738f76 to 2bdda34 Compare October 30, 2023 13:55
@RaitoBezarius
RaitoBezarius marked this pull request as ready for review October 30, 2023 14:00
@github-actions github-actions Bot added 8.has: documentation This PR adds or changes documentation 8.has: changelog This PR adds or changes release notes labels Oct 30, 2023
@h7x4 h7x4 added the 8.has: clean-up This PR removes packages or removes other cruft label Oct 30, 2023
Comment thread pkgs/top-level/aliases.nix Resolved

@figsoda figsoda left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops I missed this, let's do iso 8601 like the existing dates

Comment thread pkgs/top-level/aliases.nix Resolved
Comment thread pkgs/top-level/aliases.nix Resolved
@NotAShelf

Copy link
Copy Markdown
Member

I think it's a a little too early to remove nodejs 14 and 16. Sure, they are EOL but thanks to the intricacy of web frameworks, many web projects still run on one of those.

Also, openvscodeserver has been added in 23.05 and now it's being removed again in 23.11. Why is it straight up removed and not attempted to be updated? A lifetime of a single release is quite breaking.

As as side note, I think the users deserve to know how to acquire the old versions without having to read the source. Quite sure there will be some users that depend on those versions, whether we like it or not.

@RaitoBezarius

Copy link
Copy Markdown
Member Author

I think it's a a little too early to remove nodejs 14 and 16. Sure, they are EOL but thanks to the intricacy of web frameworks, many web projects still run on one of those.

Node.js 14 and 16 were planned to be removed last release, they were extended for this particular reason and we made an exception. It does not make sense to me to make two exceptions.

If you need those EOL versions for whatever reason, anyone is free to provide them via an out-of-tree repository, but, we have no resource to maintain those inside of nixpkgs.

Also, openvscodeserver has been added in 23.05 and now it's being removed again in 23.11. Why is it straight up removed and not attempted to be updated? A lifetime of a single release is quite breaking.

Well, if people donate a package they do not maintain, the natural conclusion is that they will be removed as soon as we cannot find a way to make them work. Maintainers were pinged, nothing was done.

If you know how to update it, please update it, I tried to update it multiple times while waiting for upstream to make their move, I'm not maintainer of this package. It's not reasonable to expect the release management community to be de-facto maintainers of any abandoned package.

As as side note, I think the users deserve to know how to acquire the old versions without having to read the source. Quite sure there will be some users that depend on those versions, whether we like it or not.

For sure, but as said earlier, we have finite resources, if you would like to contribute in that area, please send pull requests to improve documentation on how to retrieve ancient versions of software.

Users will always depend on anything, it's not a reason to not perform the planned removals, otherwise we would be stuck with OpenSSL 0.x for those reasons. There's an equilibrium and a compromise, Node.js had this compromise for an entire release cycle. Now, it has to go.

@RaitoBezarius

Copy link
Copy Markdown
Member Author

I will merge once CI passes.

@MinerSebas

Copy link
Copy Markdown
Contributor

#261125 updates openvscode-server to Node18

@RaitoBezarius

Copy link
Copy Markdown
Member Author

I will remove the vscode server stuff.

@FliegendeWurst FliegendeWurst added the 6.topic: old-versions Tickets pertaining to ongoing support of outdated versions of packages label Nov 5, 2023

@SuperSandro2000 SuperSandro2000 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I technically still need it, too because nextcloud is way too slow updating their stuff but I guess I am just going to revert it in my fork 🤷‍♂️

I am not sure if removing all the dependent things and just keeping nodejs would be any better.

@RaitoBezarius
RaitoBezarius force-pushed the drop-nodejs branch 2 times, most recently from 125f7b0 to 6f533e2 Compare November 17, 2023 15:05
Security support EOLed 6 months ago.
@RaitoBezarius

Copy link
Copy Markdown
Member Author

Result of nixpkgs-review pr 264358 run on x86_64-linux 1

1 package blacklisted:
  • nixos-install-tools

Security support EOLed 1 month ago.
Depends on EOL software and no maintenance has been attempted to change this after a ping
(NixOS#259178)
Feel free to adopt and re-introduce if you care about this software.

This will probably seriously hamper ELK usability in nixpkgs, but as it
receives no maintenance…
Those packages didn't use Node.js 14 in practice, but Node.js 18 or more.
As Node.js 16 is dropped from nixpkgs, we don't need support code for Node.js 16 anymore.
Depends on Node.js 16 and cannot be trivially upgraded to Node.js 18.
@ofborg ofborg Bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Nov 17, 2023
@RaitoBezarius
RaitoBezarius merged commit d3530f4 into NixOS:master Nov 17, 2023
@arianvp

arianvp commented Feb 29, 2024 •

Copy link
Copy Markdown
Member

Half of the Github Actions ecosystem depends on nodejs 16 still. This breaks a lot of things :(

But I understand this is hard / impossible to support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 6.topic: nodejs Node.js is a free, open-source, cross-platform JavaScript runtime environment 6.topic: old-versions Tickets pertaining to ongoing support of outdated versions of packages 8.has: changelog This PR adds or changes release notes 8.has: clean-up This PR removes packages or removes other cruft 8.has: documentation This PR adds or changes documentation 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants