| 3 Aug 2023 |
@gdesforges:matrix.org | heya! | 13:47:41 |
@gdesforges:matrix.org | I have an issue with mkYarnPackage's offline cache
https://github.com/NixOS/nixpkgs/pull/244504#issuecomment-1661134921 | 13:47:56 |
@gdesforges:matrix.org | using yarn.lock and yarn.nix works well, but trying to use offlineCache does not work | 13:48:20 |
@gdesforges:matrix.org | I'd prefer to abide by Lily Foster 's comment and not push the lockfile to nixpkgs if possible :) | 13:49:01 |
@gdesforges:matrix.org | does anyone have experience with this type of issue?
error: builder for '/nix/store/k0rmfjfr8km9drpikvmz3dj8dh5vxh3w-marp-team-marp-cli-modules-3.1.0.drv' failed with exit code 1;
...
Error: Couldn't find any versions for "rollup" that matches "^3.26.3" in our cache (possible versions are ""). This is usually caused by a missing entry in the lockfile, running Yarn without the --offline flag may help fix this issue.
| 13:49:50 |
Lily Foster | In reply to @gdesforges:matrix.org
does anyone have experience with this type of issue?
error: builder for '/nix/store/k0rmfjfr8km9drpikvmz3dj8dh5vxh3w-marp-team-marp-cli-modules-3.1.0.drv' failed with exit code 1;
...
Error: Couldn't find any versions for "rollup" that matches "^3.26.3" in our cache (possible versions are ""). This is usually caused by a missing entry in the lockfile, running Yarn without the --offline flag may help fix this issue.
I was hoping to look at it later today (US Eastern tz), but hopefully someone might be able to help before then | 13:52:18 |
Lily Foster | Sorry I've been sparse... | 13:52:22 |
@gdesforges:matrix.org | Don't worry, your help is very much appreciated however sparse it is 😄 are you the most active member of nixpkgs on JS? | 13:53:34 |
@gdesforges:matrix.org | Or maybe even the owner of the JS infra of nixpkgs? | 13:53:54 |
@gdesforges:matrix.org | Must be lots of work haha | 13:54:04 |
raitobezarius | (I think de-facto yes :D) | 14:07:08 |
| 4 Aug 2023 |
gdamjan | so, does anyone have any ideas why nodejs-slim depends on these -dev packages: | 13:29:37 |
gdamjan |  Download image.png | 13:29:38 |
gdamjan | icu4c-73.2-dev, openssl-3.0.9-dev, libuv-1.46.0-dev, zlib-1.2.13-dev
| 13:30:14 |
raitobezarius | because nodejs still needs to compile stuff? | 13:34:57 |
raitobezarius | via nodejs-gyp I guess | 13:35:04 |
@gdesforges:matrix.org | My wild guess would be...
Try to remove them one by one and see if it breaks anything 😄 | 13:35:14 |
gdamjan | In reply to @raitobezarius:matrix.org because nodejs still needs to compile stuff? this is -slim which does not include npm | 13:36:00 |
Lily Foster | In reply to @gdamjan:spodeli.org so, does anyone have any ideas why nodejs-slim depends on these -dev packages: nix why-depends? | 13:36:35 |
raitobezarius | I remember roughly we had discussions about it with Lily Foster a long time ago | 13:36:54 |
Lily Foster | In reply to @gdamjan:spodeli.org this is -slim which does not include npm Yeah without npm and all of its bundled modules (e.g. node-gyp) it shouldn't need it | 13:37:05 |
Lily Foster | Does -slim include headers? | 13:37:14 |
Lily Foster | In reply to @raitobezarius:matrix.org I remember roughly we had discussions about it with Lily Foster a long time ago We did? 👀 | 13:37:21 |
Lily Foster | I have no memory of that (but that's not that surprising...) | 13:37:31 |
raitobezarius | I remember we had the discussions on the closure size of nodejs-slim vs nodejs | 13:37:33 |
raitobezarius | maybe in NixOS and not Nix NodeJS | 13:37:38 |
gdamjan | In reply to @lily:lily.flowers Does -slim include headers? it does. I've tried removing them in some post* hook, didn't change the deps | 13:37:46 |
Lily Foster | Nix why depends can tell you the exact files with the reference iirc | 13:38:15 |
Lily Foster | So knowing which files may help | 13:38:20 |
gdamjan | let me see,first time I hear about nix why-depends :D | 13:39:20 |