Nix NodeJS | 212 Members | |
| 62 Servers |
| Sender | Message | Time |
|---|---|---|
| 3 Jul 2023 | ||
| 16:34:59 | ||
| Hey Lily Foster I somehow heard you were the one to talk to regarding yarn v2 locks. Have you already looked into that? | 16:35:58 | |
In reply to @janne.hess:helsinki-systems.deI intend to, it's on the todo list. Not much yet though | 16:55:53 | |
In reply to @lily:lily.flowersDoesn't work with fetchYarnDeps either I guess? :/ | 16:56:34 | |
In reply to @janne.hess:helsinki-systems.deIt will only work with that when I get to it. Yarn2nix makes me sad | 16:59:09 | |
| 4 Jul 2023 | ||
| Okay I tried and I gotta say: yarn is the absolute worst | 08:38:33 | |
| Parsing the lock is actually very easy, resolving the resolution to a usable URL is absolutely not | 08:42:08 | |
In reply to @janne.hess:helsinki-systems.deIdk, npm is pretty bad. At least yarn isn't quite so happy to silently ignore errors and redownload a bunch of stuff when you breath on it wrong | 08:42:10 | |
In reply to @lily:lily.flowersI was talking about the code, not the actual use ;) | 08:42:31 | |
| * Idk, npm is pretty bad. At least yarn isn't quite so happy to silently ignore errors and redownload a bunch of stuff when you breathe on it wrong | 08:42:34 | |
In reply to @janne.hess:helsinki-systems.deFair | 08:42:39 | |
| The yarn lockfile format is custom cancer | 08:42:54 | |
| the v2 is a lot better, that's proper yaml | 08:43:04 | |
In reply to @janne.hess:helsinki-systems.deAlso this | 08:43:06 | |
| but it doesn't have a URL | 08:43:09 | |
| Oh really 💀 | 08:43:20 | |
| I hadn't looked at the yarn-berry stuff yet. It's just been on my todo list | 08:43:37 | |
In reply to @janne.hess:helsinki-systems.de
| 08:44:39 | |
| I more or less expect to get to it after the current in-progress PRs are dealt with on the node project board on github, and after npmCheckHook and buildYarnPackage are merged too | 08:45:30 | |
In reply to @janne.hess:helsinki-systems.deYeah, was worried they'd have done that. The references are unfortunate because they're entirely dependent on the locally configured registry (reminds me of another registry we have.... ❄) | 08:46:36 | |
In reply to @janne.hess:helsinki-systems.deThey still have integrity hashes at least, right? | 08:47:30 | |
| Say - instead of parsing the lock, couldn't I just:
or something like this? | 08:47:42 | |
In reply to @lily:lily.flowersThere is a checksum field which looks like a sha512 hash | 08:48:22 | |
In reply to @janne.hess:helsinki-systems.dePossibly. The thing is I know they removed --offline with v2 so we gotta make sure we can still prevent it from needing anything online | 08:48:55 | |
In reply to @janne.hess:helsinki-systems.deIs it sri or just bare sha512? | 08:49:12 | |
In reply to @lily:lily.flowers
| 08:49:21 | |
In reply to @lily:lily.flowersI will try. 5 lines of bash is probably a lot easier than having custom node code that parses 2 different lock files ;) | 08:49:41 | |
In reply to @janne.hess:helsinki-systems.deOh you mean for fetching. I'm not sure if lockfile fixup is still required for git deps for yarn berry or not. It was for yarn1 and so needed a custom fetcher | 08:50:41 | |
In reply to @lily:lily.flowersNo I mean for generating the hash for fetchYarnDeps | 08:51:14 | |
| If lockfile fixup is not needed and their cache format is reproducible, sure that could maybe work | 08:51:29 | |