!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

208 Members
58 Servers

Load older messages


SenderMessageTime
24 Sep 2023
@c0ba1t:matrix.orgCobalt* Hey, I had more instances of this and similar dependency fetching errors today. Has anyone figured out (maybe Lily Foster) a workaround? My first idea was to setup a caching NPM proxy and make the build process temporarily impure. However this seems to be quite a bit of work and not really treat the root cause (transient fetch error, compared to a working npm install) but only act as a bandaid at best. 18:50:14
@hexa:lossy.networkhexa
In reply to @lily:lily.flowers
Can you try with RUST_LOG=info in the environment and get it to happen, so I can see if retries are working?
can you still reproduce this? if so please rerun with this env var
18:50:14
@c0ba1t:matrix.orgCobalt* In reply to hexa node_modules/rimraf node_modules/finalhandler/node_modules/ms node_modules/@histoire/app Error: unknown error Caused by: [56] Failure when receiving data from the peer Hey, I had more instances of this and similar dependency fetching errors today. Has anyone figured out (maybe Lily Foster) a workaround? My first idea was to setup a caching NPM proxy and make the build process temporarily impure. However this seems to be quite a bit of work and not really treat the root cause (transient fetch error, compared to a working npm install) but instead only act as a bandaid.18:51:22
26 Sep 2023
@emma:rory.gayEmma [it/its]how would one go about adding a package to a package.json at build time?00:22:57
@lily:lily.flowersLily Foster
In reply to @emma:rory.gay
how would one go about adding a package to a package.json at build time?
Depends, why is it needed?
10:11:59
@emma:rory.gayEmma [it/its] i want to add the pg library specifically in nix 10:12:45
@emma:rory.gayEmma [it/its]youre "supposed to install it yourself if you want postgres"10:13:04
@lily:lily.flowersLily FosterLike the C library or some npm package?10:14:20
@emma:rory.gayEmma [it/its]the npm package10:14:31
@emma:rory.gayEmma [it/its] https://www.npmjs.com/package/pg 10:14:50
@lily:lily.flowersLily FosterOh yeah I see the package10:15:00
@lily:lily.flowersLily Foster Does it attempt to import it then and just disable stuff if it isn't present? 10:15:28
@lily:lily.flowersLily Foster(At runtime)10:15:35
@emma:rory.gayEmma [it/its]no idea, its an optional runtime dependency of typeorm10:15:56
@emma:rory.gayEmma [it/its]if its not present and you try to use a postgres database, it just throws an exception stating you need to install the package10:16:53
@lily:lily.flowersLily FosterCan you link the package.json for what you are trying to package?10:18:15
@emma:rory.gayEmma [it/its] https://github.com/spacebarchat/server/blob/master/package.json 10:18:39
@emma:rory.gayEmma [it/its]also see flake.nix on the dev/nix branch (i added pg there for the time being)10:19:21
@lily:lily.flowersLily Foster Yeah it's not locked at all, so you'd have to manually locked a version or just download it yourself and stick it in node_modules after configure 10:32:29
@emma:rory.gayEmma [it/its]got the other maintainers to agree on adding it10:32:59
@lily:lily.flowersLily Foster It's sketch, but you should be able to buildNpmPackage for just pg and then copy ${pg}/lib/node_modules/pg to ./node_modules/pg in your derivation postConfigure 10:33:39
@lily:lily.flowersLily Foster
In reply to @emma:rory.gay
got the other maintainers to agree on adding it
Ah that works too
10:33:45
@lily:lily.flowersLily FosterProbably less sketchy anyway 😅10:34:10
@emma:rory.gayEmma [it/its]yeah10:35:20
@emma:rory.gayEmma [it/its]i was thinking of using a fetchTarball, honestly10:35:43
@lily:lily.flowersLily Foster
In reply to @emma:rory.gay
i was thinking of using a fetchTarball, honestly
Only concern is if it has other deps that would be unmet. Also it's not a case with this one, but if they had C code build steps you'd need them to run
10:38:13
@emma:rory.gayEmma [it/its]true10:40:08
@me:indeednotjames.com@me:indeednotjames.com changed their display name from Emily to emily.16:38:16
30 Sep 2023
@thiloho:matrix.orgthiloho joined the room.21:45:27
@thiloho:matrix.orgthiloho

Lily Foster: Are you aware of this error? I am getting it lately and cannon figure it out.

error: builder for '/nix/store/0v4309m5kdpa2wvm9ix0v9hyf2x8cxwc-build-aurora-blog-npm-deps.drv' failed with exit code 1;
       last 10 log lines:
       > node_modules/sade
       > node_modules/to-fast-properties
       > node_modules/p-try
       > node_modules/yallist
       > node_modules/stdin-discarder
       > node_modules/mdast-util-to-string
       > Error: unknown error
       >
       > Caused by:
       >     [55] Failed sending data to the peer
       For full logs, run 'nix log /nix/store/0v4309m5kdpa2wvm9ix0v9hyf2x8cxwc-build-aurora-blog-npm-deps.drv'.
error: 1 dependencies of derivation '/nix/store/rid5b0q43iqdf1anhjcf2r29w6cbi2xs-build-aurora-blog.drv' failed to build
21:45:46

Show newer messages


Back to Room ListRoom Version: 6