| 9 Nov 2023 |
szucsitg | The funny thing I get a different hash in my test project than in my original for the very same lines in the lockfile | 15:53:34 |
szucsitg | Actually it's keeps changing as I scroll back | 15:54:25 |
Lily Foster | In reply to @szucsitg:matrix.org I can upload the sample if that would help yeah that probably would help. i'm trying to figure out where that hash is coming from at all | 15:56:38 |
szucsitg | https://gist.github.com/szucsitg/70fe7ca82c51d30208595cd04b8bd7c5 | 16:05:24 |
Lily Foster | In reply to @szucsitg:matrix.org https://gist.github.com/szucsitg/70fe7ca82c51d30208595cd04b8bd7c5 I may not be understanding something, but why would you have a separate node-modules derivation here and then just use stdenv.mkDerivation to build what is a yarn package? | 16:07:34 |
Lily Foster | In reply to @szucsitg:matrix.org https://gist.github.com/szucsitg/70fe7ca82c51d30208595cd04b8bd7c5 * I may not be understanding something, but why would you have a separate node-modules derivation here and then just using stdenv.mkDerivation to build what is a yarn package? | 16:07:40 |
szucsitg | Maybe my pattern is completely off, but there's not much documentation around mkYarnPackage. Also ultimately due to the project structure we install packages in root, then build in a subfolder 3 levels down | 16:09:51 |
szucsitg | So I thought this way I have fight less with nix patterns at the end | 16:10:23 |
Lily Foster | mkYarnPackage is designed to build yarn packages, and the fact that it makes a node_modules folder at all is just a byproduct of that. I feel like you'll have an easier time without that indirect, especially since running yarn plain like you are now won't actually work without the setup stuff that mkYarnPackage does | 16:11:38 |
Lily Foster | * mkYarnPackage is designed to build yarn packages, and the fact that it makes a node_modules folder at all is just a byproduct of that. I feel like you'll have an easier time without that indirection, especially since running yarn plain like you are now won't actually work without the setup stuff that mkYarnPackage does | 16:11:47 |
Lily Foster | still isn't gonna fix the error you came in here for though | 16:12:34 |
Lily Foster | i'm looking into that | 16:12:36 |
Lily Foster | I'm assuming you must have IFD on, since you didn't add a yarn.nix? | 16:14:42 |
Lily Foster | Hmmm | 16:14:55 |
szucsitg | I'm happy to learn from people with more experience, what would be a better approach. I'm trying to implement nix for a while for our builds, until a few months ago, I always got stuck, but now I'm inching very close to have most stuff covered | 16:15:18 |
szucsitg | What is IFD? | 16:15:25 |
Lily Foster | https://nixos.org/manual/nix/unstable/language/import-from-derivation | 16:16:08 |
Lily Foster | i really see no way for this to work without the integrity hash being in the yarn.lock file | 16:16:23 |
Lily Foster | or rather see no way that it could be working now | 16:16:32 |
Lily Foster | which i mean i guess isn't | 16:16:39 |
szucsitg | However yarn doesn't add a hash 🤔 | 16:17:09 |
Lily Foster | Yeah but idk where yarn2nix is getting one from | 16:19:37 |
Lily Foster | (you'll have to bear with me a few minutes. i'm on a really crummy internet connection and trying to build stuff on it is not ideal) | 16:26:30 |
szucsitg | Thanks for your help, I'm not in an ultimate rush, otherwise I wouldn't want to build this project with nix 😅 | 16:29:37 |
@janne.hess:helsinki-systems.de | Btw, what's up with the npm registry's performance? I'm fetching some deps here with prefetch-npm-deps and while waiting I got married, had 2 kids and they both finished college | 16:38:12 |
Lily Foster | congrats on the marriage and kids i guess | 16:39:34 |
@janne.hess:helsinki-systems.de | thanks | 16:39:39 |
Lily Foster | unfortunately i've no clue what's up with npm registry rn though | 16:39:46 |
@janne.hess:helsinki-systems.de | Ah so it's a global problem? | 16:39:56 |
Lily Foster | oh, idk. i'm on a mobile hotspot rn so i don't have good enough internet to test and see if it's slow for me too | 16:41:55 |