Nix NodeJS | 209 Members | |
| 59 Servers |
| Sender | Message | Time |
|---|---|---|
| 14 Oct 2023 | ||
In reply to @lily:lily.flowers* No sorry not cached. I'm not sure I understand this, but I when the flake is changed, I guess the yarn package has to be recalculated or evaluated which takes some time (about 15 seconds). This is different from the other packages in the flake which are evaluated almost immediately if they haven't been changed. I experienced this as a cache miss but I realize now that it is not about that. Here's the flake: https://github.com/ahbk/ahbk/blob/main/flake.nix | 14:40:47 | |
| * No sorry not cached. I'm not sure I understand this, but when the flake is changed, I guess the yarn package has to be recalculated or evaluated which takes some time (about 15 seconds). This is different from the other packages in the flake which are evaluated almost immediately if they haven't been changed. I experienced this as a cache miss but I realize now that it is not about that. Here's the flake: https://github.com/ahbk/ahbk/blob/main/flake.nix | 14:40:56 | |
| * No sorry not cached. I'm not sure I understand this, but when the flake is changed I think the yarn package has to be recalculated or evaluated which takes some time (about 15 seconds), even if the change didn't affect the package. This is different from the other packages in the flake which are evaluated almost immediately if they haven't been changed. I experienced this as a cache miss but I realize now that it is not about that. Here's the flake: https://github.com/ahbk/ahbk/blob/main/flake.nix | 14:41:38 | |
| * No sorry not cached. I'm not sure I understand this, but when the flake is changed I think the yarn package has to be recalculated or evaluated which takes some time (about 15 seconds), even if the change didn't affect the package. This is different from the other packages in the flake which are evaluated almost immediately if they haven't been changed. I experienced this as a cache miss but I realize now that it is not about that. Here's the flake: https://github.com/ahbk/ahbk/blob/main/flake.nix#L39 | 14:42:36 | |
In reply to @ahbk:matrix.orgAh, you might want to look into something like https://github.com/numtide/nix-filter | 14:44:13 | |
| neat, thanks! | 14:45:29 | |
In reply to @lily:lily.flowers I made an impure derivation, and now it's failing with:
I don't know if it's very relevant, but it's kind of sus | 22:59:52 | |
In reply to @dandellion:dodsorf.asThat is pretty weird, but i'm not sure how relevant it is. I'm assuming this is all an artifact of that npm does not consider sourcehut a source that it can pull tarballs from and must fall back to git checkout. As for where that is going wrong, i need to dive in to our tooling again and instrument npm to find why it doesn't like that | 23:02:16 | |
fwiw running nix develop on the derivation, and then manually running the npmConfigHook and such does succesfully build it | 23:03:20 | |
In reply to @dandellion:dodsorf.asThat's expected since dev shell lets npm call out to the internet when it's not supposed to need to (npm gets very very happy about silently deciding something is wrong and deleting and redownloading from the internet....) | 23:04:12 | |
| Dandellion: Do you think you could share your derivation for me to poke at later? | 23:04:49 | |
| sure! | 23:04:56 | |
In reply to @lily:lily.flowersAh right, yeah, I'm mainly confused about why the impure derivation then fails to build | 23:05:30 | |
| since nix develop should also come with npmDeps from the npm fetcher | 23:05:52 | |
| Yeah it should make those available for npm when running the config hook | 23:06:14 | |
| https://github.com/dali99/nixos-matrix-modules/commit/ad76e1a94ebb99b34e1fa021e5a0e0b870f7016f | 23:08:11 | |
| 15 Oct 2023 | ||
| 20:53:53 | ||
Lily Foster, I guess buildNpmPackage could add a npmWorkspaces option to simplify building multiple workspaces. It's not really an issue, though, to just build the other packages in a preBuild. | 20:55:25 | |
| Also, thank you for your help on that PR again. | 20:57:18 | |
In reply to @felschr:matrix.orgIt's weird to understand what that would mean though. Like do they all just get installed side-by-side in $out/lib/node_modules and bins all installed in $out/bin? | 20:57:22 | |
| hmm, right | 20:57:56 | |
| I guess that could make sense | 20:58:14 | |
something like npmWorkspaceDeps? | 20:58:17 | |
| really npm should be doing this correctly tbh | 20:58:39 | |
| in my case I only need those package to be built so the main workspace can use them as dependencies | 20:58:46 | |
| Yeah | 20:58:58 | |
| 19 Oct 2023 | ||
| this missing integrity hash bug in npm just got me again, are there currently plans to handle this? | 12:54:20 | |
| plans yes | 12:54:57 | |
| time, we'll see | 12:55:02 | |
| if someone wants to work on it, i can push my wip code to refactor lockfile fixup and provide guidance | 12:55:18 | |