!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

198 Members
57 Servers

Load older messages


SenderMessageTime
30 Jan 2024
@hexa:lossy.networkhexahttps://github.com/NixOS/nixpkgs/pull/251687 hmm00:53:34
@hexa:lossy.networkhexaI think I am now uniquely qualified to review that existing PR00:53:46
@lily:lily.flowersLily Foster
In reply to @hexa:lossy.network
and relative always mean relative to the package, not to my cwd
i can't tell how or why this would be the case, by some quick looking through the code on mobile 👀
00:55:41
@hexa:lossy.networkhexaugh, mobile 😄00:55:54
@hexa:lossy.networkhexadon'00:55:55
@hexa:lossy.networkhexa * don't do that00:55:57
@lily:lily.flowersLily Foster
In reply to @hexa:lossy.network
don'
(it is, uh, hurting to use gh's search for this on mobile, yeah...)
00:56:41
@hexa:lossy.networkhexahttps://github.com/NixOS/nixpkgs/pull/251687/files#diff-0484e02777f32406a41a22e3f48f96f437ec183b1d3d3f9533d67370e6fb0620R49-R6300:57:30
@hexa:lossy.networkhexathis hurts as well 😄 00:57:33
@hexa:lossy.networkhexathat whole installPhase is wild00:58:22
@marie:marie.cologneMarieI can't get npm to write a non broken lockfile for me, any ideas? I tried with npm 9.8.1, 10.2.4 and 1.4.0 on different systems and all don't add integrity and resolved fields for a few dependencies I tried running npm-lockfile-fix but this also seems to break the lockfile09:32:03
@marie:marie.cologneMarie * I can't get npm to write a non broken lockfile for me, any ideas? I tried with npm 9.8.1, 10.2.4 and 10.4.0 on different systems and all don't add integrity and resolved fields for a few dependencies I tried running npm-lockfile-fix but this also seems to break the lockfile09:32:12
@marie:marie.cologneMarieI also deleted node_modules, package-lock.json and the npm cache before running npm install09:33:06
@whentze:matrix.orgWanja Hentze
In reply to @marie:marie.cologne
I can't get npm to write a non broken lockfile for me, any ideas?
I tried with npm 9.8.1, 10.2.4 and 10.4.0 on different systems and all don't add integrity and resolved fields for a few dependencies
I tried running npm-lockfile-fix but this also seems to break the lockfile
are these peer deps by any chance?
10:10:23
@marie:marie.cologneMarieno, but the project is a workspace and the dependencies with issues seem to be used in different versions across workspace packages10:11:09
@whentze:matrix.orgWanja Hentzeoh, I've seen that with workspaces too, but sadly don't remember the fix :/10:18:57
@marie:marie.cologneMariei get a different lockfile with a different runtime error when generating the lockfile on a non NixOS machine, with the same nodejs package from nixpkgs 😵‍💫10:49:47
@whentze:matrix.orgWanja Hentze hey, npm can barely behave reproducibly when given an existing lockfile, and you're expecting lockfile generation to be reproducible? :D 10:59:57
@marie:marie.cologneMariefair11:10:43
@marie:marie.cologneMariebut getting very different lockfiles from the exact same version doesn't look good11:17:38
@lily:lily.flowersLily Foster
In reply to @marie:marie.cologne
I can't get npm to write a non broken lockfile for me, any ideas?
I tried with npm 9.8.1, 10.2.4 and 1.4.0 on different systems and all don't add integrity and resolved fields for a few dependencies
I tried running npm-lockfile-fix but this also seems to break the lockfile
can you share package.json and the lockfile?
11:56:55
@marie:marie.cologneMarie
In reply to @lily:lily.flowers
can you share package.json and the lockfile?
upstream lockfile: https://github.com/appium/appium/blob/master/package-lock.json
lockfile i got on non nixos system: https://github.com/appium/appium/blob/6365189b729548fe0e1591000634291c7e7a126c/package-lock.json
lockfile from nixos system: https://github.com/appium/appium/blob/591bc0f96eeebb72252d7eb996ef0068993c23e1/package-lock.json
12:41:17
@lily:lily.flowersLily Foster(maybe we should just dump npm and only use pnpm. pretty sure it's lockfiles are significantly less busted out in the wild)12:42:35
@lily:lily.flowersLily Foster* (maybe we should just dump npm and only use pnpm. pretty sure its lockfiles are significantly less busted out in the wild)12:42:45
@marie:marie.cologneMariei got another clue from a colleague, i forgot to delete the subpackage node_modules folders. that might explain the package lock differences12:47:34
@marie:marie.cologneMariebut it still throws an error when trying to run it, not sure if that is buildNpmPackage's fault12:48:36
@marie:marie.cologneMariei'll try to debug that another time12:49:32
@lily:lily.flowersLily Foster
In reply to @marie:marie.cologne
but it still throws an error when trying to run it, not sure if that is buildNpmPackage's fault
share log?
13:04:04
@marie:marie.cologneMarie

oh sorry, forgot to send

/nix/store/7v1595gwyl2lrsb9dx1n8f0vig81l454-appium-2.4.1/lib/node_modules/appium-monorepo/node_modules/ajv-formats/src/index.ts:55
  ajv.opts.code.formats ??= _`require("ajv-formats/dist/formats").${exportName}`
           ^
TypeError: Cannot read properties of undefined (reading 'code')
    at addFormats (/nix/store/7v1595gwyl2lrsb9dx1n8f0vig81l454-appium-2.4.1/lib/node_modules/appium-monorepo/node_modules/ajv-formats/src/index.ts:55:12)
    at formatsPlugin (/nix/store/7v1595gwyl2lrsb9dx1n8f0vig81l454-appium-2.4.1/lib/node_modules/appium-monorepo/node_modules/ajv-formats/src/index.ts:42:3)
    at Function._instantiateAjv (/nix/store/7v1595gwyl2lrsb9dx1n8f0vig81l454-appium-2.4.1/lib/node_modules/appium-monorepo/packages/appium/lib/schema/schema.js:256:27)
    at new AppiumSchema (/nix/store/7v1595gwyl2lrsb9dx1n8f0vig81l454-appium-2.4.1/lib/node_modules/appium-monorepo/packages/appium/lib/schema/schema.js:102:30)
    at Function.create (/nix/store/7v1595gwyl2lrsb9dx1n8f0vig81l454-appium-2.4.1/lib/node_modules/appium-monorepo/packages/appium/lib/schema/schema.js:114:24)
    at Object.<anonymous> (/nix/store/7v1595gwyl2lrsb9dx1n8f0vig81l454-appium-2.4.1/lib/node_modules/appium-monorepo/packages/appium/lib/schema/schema.js:663:35)
    at Module._compile (node:internal/modules/cjs/loader:1376:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
    at Module.load (node:internal/modules/cjs/loader:1207:32)
    at Function.Module._load (node:internal/modules/cjs/loader:1023:12)
    at Module.require (node:internal/modules/cjs/loader:1235:19)
    at require (node:internal/modules/helpers:176:18)
    at Object.<anonymous> (/nix/store/7v1595gwyl2lrsb9dx1n8f0vig81l454-appium-2.4.1/lib/node_modules/appium-monorepo/packages/appium/lib/config.js:9:1)
    at Module._compile (node:internal/modules/cjs/loader:1376:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
    at Module.load (node:internal/modules/cjs/loader:1207:32)
13:08:34
31 Jan 2024
@federicodschonborn:matrix.org@federicodschonborn:matrix.org changed their profile picture.03:35:49

Show newer messages


Back to Room ListRoom Version: 6