| 26 Sep 2023 |
Lily Foster | (At runtime) | 10:15:35 |
Emma [it/its] | no idea, its an optional runtime dependency of typeorm | 10:15:56 |
Emma [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 package | 10:16:53 |
Lily Foster | Can you link the package.json for what you are trying to package? | 10:18:15 |
Emma [it/its] | https://github.com/spacebarchat/server/blob/master/package.json | 10:18:39 |
Emma [it/its] | also see flake.nix on the dev/nix branch (i added pg there for the time being) | 10:19:21 |
Lily 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 [it/its] | got the other maintainers to agree on adding it | 10:32:59 |
Lily 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 Foster | In reply to @emma:rory.gay got the other maintainers to agree on adding it Ah that works too | 10:33:45 |
Lily Foster | Probably less sketchy anyway 😅 | 10:34:10 |
Emma [it/its] | yeah | 10:35:20 |
Emma [it/its] | i was thinking of using a fetchTarball, honestly | 10:35:43 |
Lily 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 [it/its] | true | 10:40:08 |
| @me:indeednotjames.com changed their display name from Emily to emily. | 16:38:16 |
| 30 Sep 2023 |
| thiloho joined the room. | 21:45:27 |
thiloho | 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 |
thiloho | I am also getting an [18] error when using nix-prefetch-deps for the package.lock.json file. | 21:49:20 |
Lily Foster | In reply to @thiloho:matrix.org
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
https://github.com/NixOS/nixpkgs/issues/257805 and https://github.com/NixOS/nixpkgs/issues/256873 | 21:52:52 |
Lily Foster | I haven't had a chance to dive into it though :( | 21:53:10 |
thiloho | Lily Foster: Thank you, what I can tell is that the [18] error is fixed with NIX_BUILD_CORES=1, but that makes it really slow and the [55] error is still there without any solution. | 22:03:36 |
Lily Foster | In reply to @thiloho:matrix.org Lily Foster: Thank you, what I can tell is that the [18] error is fixed with NIX_BUILD_CORES=1, but that makes it really slow and the [55] error is still there without any solution. Does it always fail on the same dependency? | 22:37:36 |
| peter-lustig joined the room. | 23:19:09 |
| 1 Oct 2023 |
peter-lustig | Redacted or Malformed Event | 11:50:55 |
thiloho | In reply to @lily:lily.flowers Does it always fail on the same dependency? I would tell you if this was the case, unfortunately it seems to not fail for me today (I already did a few successful builds with buildNpmPackage. As mentioned in the issue, it only happens occasionally so it is not that easy to debug. | 11:58:54 |
thiloho | In reply to @lily:lily.flowers Does it always fail on the same dependency? * I would tell you if this was the case, unfortunately it seems to not fail for me today (I already did a few successful builds with buildNpmPackage). As mentioned in the issue, it only happens occasionally so it is not that easy to debug. | 11:59:01 |
Lily Foster | In reply to @thiloho:matrix.org I would tell you if this was the case, unfortunately it seems to not fail for me today (I already did a few successful builds with buildNpmPackage). As mentioned in the issue, it only happens occasionally so it is not that easy to debug. Yeah, tell me about it, I have tried to reproduce it a few times myself and have been unable to 😅 | 12:01:58 |
| haruka joined the room. | 20:10:44 |
thiloho | In reply to @lily:lily.flowers Yeah, tell me about it, I have tried to reproduce it a few times myself and have been unable to 😅 Alright, now after a few hours I am getting the [55 error again, and I can tell you that it does not fail on the same dependency.
Here, the two different errors, the first one is from yesterday and the new one from right now:
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: builder for '/nix/store/pqzz7v0d4gqi6smg90c909g542snxp83-build-aurora-blog-npm-deps.drv' failed with exit code 1;
last 10 log lines:
> node_modules/server-destroy
> node_modules/zwitch
> node_modules/vite/node_modules/@esbuild/linux-arm
> node_modules/@types/debug
> node_modules/is-extendable
> node_modules/ansi-align/node_modules/string-width
> Error: unknown error
>
> Caused by:
> [55] Failed sending data to the peer
For full logs, run 'nix log /nix/store/pqzz7v0d4gqi6smg90c909g542snxp83-build-aurora-blog-npm-deps.drv'.
| 21:40:02 |