8 Mar 2024 |
@kyle:iteratee.net | I recently patched pnpm2nix-nzbr to work with pnpm workspaces for a project at work. Are the people here that would be interested in that work? Even if just out of curiosity to see what changes were necessary? | 20:07:08 |
hexa | I need to npm install and get the resulting dir for a build | 22:46:42 |
hexa | but I only get the _cacache in out that way 😄 | 22:47:01 |
Lily Foster | In reply to @hexa:lossy.network but I only get the _cacache in out that way 😄 hmm? | 22:51:08 |
hexa | _cacache package-lock.json
| 22:51:30 |
hexa | * _cacache package-lock.json
| 22:51:39 |
Lily Foster | fetchNpmDeps does that, yeah. if you are needing to build a package then buildNpmPackage should do it | 22:51:51 |
Lily Foster | do you have more context? | 22:52:05 |
hexa | as you know, everything I do is slightly cursed | 22:52:12 |
hexa | the thing has no build script | 22:52:20 |
Lily Foster | In reply to @hexa:lossy.network as you know, everything I do is slightly cursed (me too....) | 22:52:23 |
Lily Foster | In reply to @hexa:lossy.network the thing has no build script dontNpmBuild = true ? | 22:52:45 |
hexa | https://github.com/pretix/pretix/blob/master/src/pretix/static/npm_dir/package.json | 22:52:50 |
hexa | https://github.com/pretix/pretix/blob/master/src/pretix/_build.py#L42 | 22:53:07 |
Lily Foster | In reply to @hexa:lossy.network https://github.com/pretix/pretix/blob/master/src/pretix/_build.py#L42 ewww | 22:53:32 |
hexa | told you so! | 22:53:38 |
hexa | never understimated the weird stuff I'm touching | 22:53:45 |
Lily Foster | look, i had to touch the cursed cxx interface generation python code for mupdf (and then the SWIGing the cxx interface to get a python interface.....) | 22:54:29 |
Lily Foster | this is mild | 22:54:32 |
hexa | ok, ok | 22:54:39 |
hexa | this shouldn't be a contest anyway! | 22:54:45 |
Lily Foster | yeah i'm just messing with you :) | 22:54:55 |
Lily Foster | for this, you should be able to buildNpmPackage it yourself and copy it where it needs to be. you might even be able to get away without patching the _build.py to remove the npm install since as long as it doesn't have weird dep types, npm shouldn't try to re-reify stuff unnecessarily (but npm gets spooked very easily) | 22:56:00 |
hexa | In reply to @lily:lily.flowers yeah i'm just messing with you :) same, same | 22:56:21 |
hexa | pretix> running build
pretix> npm WARN reify Removing non-directory /build/source/src/pretix/static.dist/node_prefix/node_modules
pretix> npm ERR! code EAI_AGAINn: sill reify mark deleted [ [[Kectory /build/sour
pretix> npm ERR! syscall getaddrinfo
pretix> npm ERR! errno EAI_AGAIN
pretix> npm ERR! request to https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org
pretix>
pretix> npm ERR! Log files were not written due to an error writing to the directory: /homeless-shelter/.npm/_logs
pretix> npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
| 23:20:29 |
hexa | dang | 23:20:30 |
hexa | Lily Foster: looks like I'm not getting away without patching 🙂 | 23:20:41 |
hexa | also … where is yallist suddenly coming from | 23:21:03 |
Lily Foster | damn, at least that's most of the way there | 23:21:06 |
hexa | oh, it is in the lock, so transitive dependecy | 23:21:18 |