!aRKdLCkUeIFjRPZuJT:nixos.org

NixOS JVM

110 Members
24 Servers

Load older messages


SenderMessageTime
27 Mar 2025
@msgilligan:matrix.orgmsgilliganWell, yeah actually maintaining the JDK is a lot of work. But other vendors can do it and I think some of the big ones do for paid support.03:28:24
@emilazy:matrix.orgemilybecause you can look at the stream of advisories and see that it's really like clockwork. it just comes down to gambling in the end03:28:43
@emilazy:matrix.orgemilywe don't like to gamble with users' security03:29:02
@msgilligan:matrix.orgmsgilliganI'd move really fast to the new one. But having releases deleted automatically, in the same PR as the new release seem excessive.03:29:14
@msgilligan:matrix.orgmsgilligan Well, I'm talking about availability on unstable. And saying that marking them as knownVulnerabilities immediately even if there aren't any. 03:30:24
@msgilligan:matrix.orgmsgilligan I'd say users of NixOS who are not paying anything and using non-LTS releases on the unstable branch that are out of upstream support are gambling with their own security. And personally, I'm willing to do that because my main use case is developing alpha software that will eventually run on the stable branch. 03:31:59
@emilazy:matrix.orgemilytbh I don't really think of it as deleting. just as an update. there's the LTS releases and a rolling stream of the latest one03:32:21
@emilazy:matrix.orgemily knowmVulnerabilities would be adequate but it does mean that you will have to compile it yourself 03:32:58
@emilazy:matrix.orgemilyand that takes a rather long time03:32:59
@emilazy:matrix.orgemilyBTW we do keep binary JDKs around and marked EOL03:33:10
@emilazy:matrix.orgemilybecause those don't impose any meaningful maintenance burden and also have no compile cycle03:33:33
@emilazy:matrix.orgemilyso Temurin is an option03:33:48
@msgilligan:matrix.orgmsgilligan

I'm getting the feeling that "we don't like to gamble with users' security" is at least partly a rationalization for avoiding maintenance burden on the source (and if that's the case, it makes sense and have no problem with it) Because the Temurin 23 will have the same vulnerabilities as the OpenJDK 23 built from source. I'm not trying to be argumentative, I just want to understand what you feel the tradeoffs are.

Because I totally get the maintenance overhead argument and completely respect it.

For my use case, using binary JDKs is probably fine. (Though I would migrate to the one built from source when JDK 25 is released.) But that also means the interim releases as-built-by-Nixpkgs are getting less testing.

03:41:57
@emilazy:matrix.orgemily the gambling was re knownVulnerabilities 03:44:45
@emilazy:matrix.orgemilyif we set it on both then no gambling03:44:56
@emilazy:matrix.orgemilybut one of them takes hours to build and the other seconds03:45:05
@emilazy:matrix.orgemilyso the UX is kinda better with the Temurin package once marked03:45:19
@emilazy:matrix.orgemily(and yeah a package that's just a download is very low maintenance)03:45:46
@msgilligan:matrix.orgmsgilliganBut this unmerged PR looks (to my beginner's eye) like it removes Temurin 23 as well: https://github.com/NixOS/nixpkgs/pull/391811/files#diff-79588acae2eadf21386a83519365d48aad6c7162da39897f429bca64ad8437ff03:46:02
@emilazy:matrix.orgemilyyeah, it does. I haven't reviewed the PR. I guess I should say "at some point we have done things like this" :)03:48:09
@emilazy:matrix.orgemilyFWIW "drop source, mark binary" is how Electron maintainers handle EOLs03:48:32
@msgilligan:matrix.orgmsgilligan

My project will survive no matter what the NixOS JVM team decides, but I really like Nix, want to provide feedback and help as I can, and use Nix as fully as possible in my build. I'm also eventually hoping to get some Java apps into nixpkgs.

If the human and infrastructure resources are sufficient for keeping the built-from-source packages in master/unstable (even if marked as knownVulnerabilities and requiring me to build/cache locally) I would probably (at least try) to use them.

03:54:17
@msgilligan:matrix.orgmsgilliganI also will try to learn various methods for testing PRs and pre-release branches as much as possible (and how to automate this on some of my systems, if possible)04:01:01
@msgilligan:matrix.orgmsgilligan

If anyone has any pointers to good references on how to do this, it would be appreciated. Especially anything that is Java or Rust focused (I also have some Rust projects I am trying to Nix-ify)

I guess I could try to configure GitHub and/or GitLab to pull from release branches, for example. And maybe automatically do nix flake update.

04:06:22
@msgilligan:matrix.orgmsgilligan *

If anyone has any pointers to good references on how to do this, it would be appreciated. Especially anything that is Java or Rust focused (I also have some Rust projects I am trying to Nix-ify)

I guess I could try to configure GitHub and/or GitLab to pull from release branches, for example. And maybe automatically do nix flake update and rebuild.

04:06:57
@tomodachi94:matrix.orgTomodachi94 (they/them) (I'd be willing to vouch for you if you want to be put onto the Java team; I'm probably not the only one who thinks you'd make a great addition) 04:20:14
@tomodachi94:matrix.orgTomodachi94 (they/them)* (I'd be willing to vouch for you if you want to be put onto the Java team so you get pings for this kind of stuff; I'm probably not the only one who thinks you'd make a great addition)04:20:26
@tomodachi94:matrix.orgTomodachi94 (they/them) On the testing PRs bit, our CONTRIBUTING.md is quite good nowadays: https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#how-to-review-pull-requests

As for testing prerelease branches, we have a system called Hydra which builds packages automatically once they're promoted to a channel. Here's some more information: https://wiki.nixos.org/wiki/Channel_branches
04:26:46
@tomodachi94:matrix.orgTomodachi94 (they/them)* On the testing PRs bit, our CONTRIBUTING.md has some good advice: https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#how-to-review-pull-requests As for testing prerelease branches, we have a system called Hydra which builds packages automatically once they're promoted to a channel. Here's some more information: https://wiki.nixos.org/wiki/Channel_branches04:27:01
@tomodachi94:matrix.orgTomodachi94 (they/them)* On the testing PRs bit, our CONTRIBUTING.md has some good advice: https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#how-to-review-pull-requests As for testing prerelease branches, we have a system called Hydra which builds packages automatically once they're promoted (id that the right word?) to a channel. Here's some more information: https://wiki.nixos.org/wiki/Channel_branches04:27:26

Show newer messages


Back to Room ListRoom Version: 6