!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

211 Members
60 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
17 May 2023
@lily:lily.flowersLily Foster But there's no reproducible way to handle that as-is. Except maybe doing something like how importCargoLock handles git deps with the extra hashes and hope and pray the version exists in the registry 22:17:29
@hexa:lossy.networkhexa

npm install --package-lock

22:17:44
@lily:lily.flowersLily Fosternpm is pretty hecked22:17:48
@hexa:lossy.networkhexathat did nothing to the lock file22:18:02
@lily:lily.flowersLily Foster
In reply to @hexa:lossy.network

npm install --package-lock

The problem is that won't fix it by default. Only remedy I'm aware of is deleting and relocking everything
22:18:12
@hexa:lossy.networkhexaoh ok22:18:19
@lily:lily.flowersLily Foster(if npm fixed it up during install then it wouldn't be such a problem)22:18:26
@lily:lily.flowersLily Foster(because eventually all of those missing details would be filled in and the updated lockfiles would get committed)22:18:44
@lily:lily.flowersLily FosterWe could probably check for this case, though, and produce a better error message22:19:00
@hexa:lossy.networkhexaplease 😄22:19:15
@lily:lily.flowersLily FosterHmmm I'll add that to the todo list: a message that says "please bug upstream to recreate their lockfile, it's horribly busted and will not work"22:19:31
@hexa:lossy.networkhexaehhk, it uses different versions for things now22:20:05
@hexa:lossy.networkhexanot surprising, but still22:20:25
@lily:lily.flowersLily FosterActually.... once https://github.com/NixOS/nixpkgs/pull/206477 is merged, we will be doing deep lockfile fixup anyway and we now actually map that fixup from the cache. So we could possibly cache registry deps that end up like this and let the fixup add the hash22:20:39

Show newer messages


Back to Room ListRoom Version: 6