| 9 Nov 2023 |
Lily Foster | and the reason it doesn't just get an eval error | 16:45:24 |
Lily Foster | (which it should) | 16:45:27 |
szucsitg | Thanks for debugging. I was looking through the yarn2nix code, and I think I found a work around. Use the tag's source tar.gz from github | 16:46:13 |
Lily Foster | maybe just change this line: https://gist.github.com/szucsitg/70fe7ca82c51d30208595cd04b8bd7c5#file-package-json-L5 | 16:46:15 |
Lily Foster | to git+https://... | 16:46:19 |
Lily Foster | In reply to @szucsitg:matrix.org Thanks for debugging. I was looking through the yarn2nix code, and I think I found a work around. Use the tag's source tar.gz from github Those tarballs aren't exactly guaranteed to never change (and indeed they have in the past) so that might explode some dahy | 16:46:54 |
Lily Foster | In reply to @szucsitg:matrix.org Thanks for debugging. I was looking through the yarn2nix code, and I think I found a work around. Use the tag's source tar.gz from github * Those tarballs aren't exactly guaranteed to never change (and indeed they have in the past) so that might explode some day | 16:46:55 |
Lily Foster | Letting yarn2nix download it as a git repo is probably better | 16:47:05 |
Lily Foster | And it looks like they should support git+https://github.com/duosecurity/duo_web_sdk.git#v2.9 correctly | 16:47:29 |
szucsitg | Let me try this | 16:48:02 |
szucsitg | It's working 🥳 now i can continue fixing missing package references in our own packages 😅 | 16:55:39 |
szucsitg | Thanks again for your help 🙂 | 16:55:48 |
Lily Foster | oh good! glad it was that easy to fix | 16:58:37 |
szucsitg | The next one will be more difficult because our own packages are not in the lock file | 17:02:30 |
| 10 Nov 2023 |
@janne.hess:helsinki-systems.de | Soooo Lily Foster I found my issue. The lock file was too old. Is this issue known in nix-prefetch-npm? | 09:11:03 |
@janne.hess:helsinki-systems.de | Issue is that the downloads just deadlock at some point | 09:11:21 |
@janne.hess:helsinki-systems.de | Full reproducer with the original files: https://github.com/dasJ/broken-npm-test | 09:20:23 |
Lily Foster | In reply to @janne.hess:helsinki-systems.de Full reproducer with the original files: https://github.com/dasJ/broken-npm-test Spooky, i'll try your reproducer later and see what's up | 12:21:05 |
szucsitg | I managed to figure out how to build the project mkYarnPackage. I added all packagges as workspaceDependencies, and it displays correctly in the offline cache derivation under node-modules (symlinked from deps). However when I want to build the React frontend a few folders down, it cannot find our own packages, while the node_modules folder correctly symlinked in root to offlineCache. | 16:14:45 |
szucsitg | * I managed to figure out how to build the project mkYarnPackage. I added all packagges as workspaceDependencies, and it displays correctly in the offline cache derivation under node-modules (symlinked from deps). However when I want to build the React frontend a few folders down, it cannot find our own packages, while the node_modules folder correctly symlinked in root to offlineCache. Anybody seen such behavior? | 16:15:00 |
Lily Foster | In reply to @szucsitg:matrix.org I managed to figure out how to build the project mkYarnPackage. I added all packagges as workspaceDependencies, and it displays correctly in the offline cache derivation under node-modules (symlinked from deps). However when I want to build the React frontend a few folders down, it cannot find our own packages, while the node_modules folder correctly symlinked in root to offlineCache. i really think trying to symlink node_modules like that is gonna cause more problems than it will solve | 16:15:30 |
Lily Foster | what's in that "few folders down" you're referring to? | 16:15:44 |
Lily Foster | (e.g. a new yarn package entirely or workspace package or what?) | 16:15:58 |
szucsitg | So I've got a project/yarn.lock which is root and the package.json for the frontend to built is under project/web/app | 16:17:18 |
szucsitg | I'm open to other suggestion then symlink node-modules in configurePhase | 16:18:09 |
szucsitg | * I'm open to other suggestion than symlink node-modules in configurePhase | 16:18:17 |
Lily Foster | but you aren't using workspace packaging then? | 16:18:29 |
Lily Foster | just separate yarn packages entirely? | 16:18:35 |
szucsitg | I have a derivation as mkYarnPackage, which uses fetchYarnDeps to populate offline cache. And I'm also adding workspace dependencies by iterating through a couple of folders and generating them with mkYarnPackage and inheriting yarnLock and offlineCache | 16:20:40 |
szucsitg | Also without symlinking the node_modules in configurePhase the derivation build fail that it cannot unlink folders as they're not empty | 16:25:56 |