!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

208 Members
59 Servers

Load older messages


SenderMessageTime
31 Oct 2023
@lily:lily.flowersLily Foster
In reply to @whentze:matrix.org
no please shill your tool
I mean I work on nixpkg's buildNpmPackage, and we basically work around npm bugs. The other decent one would be floco since they just reimplement npm's functionality, but apparently they're using a nix plugin now which just feels cursed? I've not seen enough about the dream2nix one, but i've heard it works more reliably than any of the others. The rest are outdated and highly questionable
19:49:18
@lily:lily.flowersLily FosterOh and i guess maybe the serokell one is decent. i've not seen it19:49:42
@lily:lily.flowersLily Foster(tbh the nixpkgs one would be a lot better if i either had time or someone else to collaborate on it with too...)19:50:17
@whentze:matrix.orgWanja Hentze
In reply to @marie:marie.cologne
i had the best experience with buildNpmPackage (nixpkgs) so far, but didn't try all of the things you said
that works well but the need to maintain the npmDepsHash is quite unfortunate. for larger projects the prefetcher takes forever and also eventually runs into npm rate limits
19:50:41
@lily:lily.flowersLily Foster(i mostly know what needs to be done, but it's a matter of doing it and the initial energy just to convince myself to get into node work can be a lot sometimes)19:51:00
@whentze:matrix.orgWanja Hentze we also have patches for that to make it retry with backoff that we intend to mainline ahem 19:51:16
@lily:lily.flowersLily Foster
In reply to @whentze:matrix.org
that works well but the need to maintain the npmDepsHash is quite unfortunate. for larger projects the prefetcher takes forever and also eventually runs into npm rate limits
We're fixing the npmDepsHash deal for out-of-tree stuff by having something like importCargoLock for npm lockfiles. And can you post a build log about the rate limits? I've never seen rate limits
19:51:32
@lily:lily.flowersLily Foster
In reply to @whentze:matrix.org
we also have patches for that to make it retry with backoff that we intend to mainline ahem
does it not already retry with backoff?
19:51:45
@whentze:matrix.orgWanja Hentze
In reply to @lily:lily.flowers
I mean I work on nixpkg's buildNpmPackage, and we basically work around npm bugs. The other decent one would be floco since they just reimplement npm's functionality, but apparently they're using a nix plugin now which just feels cursed? I've not seen enough about the dream2nix one, but i've heard it works more reliably than any of the others. The rest are outdated and highly questionable
the nix plugin is optional fwiw. you don't need it for floco itself
19:51:45
@marie:marie.cologneMariei've never had buildNpmPackage run into rate limits, only the curl issue we had19:51:59
@whentze:matrix.orgWanja Hentzenope19:52:02
@lily:lily.flowersLily Foster
In reply to @whentze:matrix.org
nope
how are you testing that?
19:52:11
@lily:lily.flowersLily Fosteri wrote the code for that. and tested it19:52:15
@lily:lily.flowersLily Fosterand it got merged ages ago19:52:20
@whentze:matrix.orgWanja Hentzehuh19:52:20
@lily:lily.flowersLily Fosterand it does fetch parallel and always has19:52:37
@whentze:matrix.orgWanja Hentzewe just put it in a mid-sized react project19:52:42
@lily:lily.flowersLily Foster (i actually recently made it respect NIX_BUILD_CORES or whatever the env var is not long ago) 19:52:54
@whentze:matrix.orgWanja Hentzeyes it does fetch in parallel, that is part of the problem19:52:55
@lily:lily.flowersLily FosterWhat nixpkgs branch are you working off of?19:53:08
@whentze:matrix.orgWanja Hentzeuhh unstable but this was a couple weeks ago19:53:29
@whentze:matrix.orgWanja HentzeI could try again19:53:36
@lily:lily.flowersLily Fosterrev?19:53:58
@whentze:matrix.orgWanja Hentzedunno, I'm on the phone19:54:07
@lily:lily.flowersLily Fosterthese fixes were all merged more than a few weeks ago i thought19:54:08
@whentze:matrix.orgWanja Hentzesry19:54:13
@lily:lily.flowersLily Fosterno it's okay!19:54:16
@lily:lily.flowersLily Fosteri'm just confused 😅19:54:20
@whentze:matrix.orgWanja Hentzevery possible that they have19:54:25
@lily:lily.flowersLily FosterWell I think the retries failing for response bodies issue was more recent19:54:46

Show newer messages


Back to Room ListRoom Version: 6