-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
211-character store path limit #85
Comments
cc @zimbatm I think this is the issue I mentioned the other day but neither of us could reproduce it. |
@dhess I think I've once seen this with the fetchers and we should probably supply (or shorten if we already do) the |
Yes, that sounds right. Given that you've possibly seen this issue before and you're not able to reproduce it, and given that there's nothing at all secret about this app at this stage, I'll make a copy of it availably publicly in the hopes that you can reproduce it. |
Thanks! It would be enough to publish a simple example app as you linked to above. I'd want to add it as regression test to the repo then (with the fix). |
Here it is: https://github.com/hackworthltd/react-nix-craco-public It's quite basic — just the default TypeScript app created by edit Sorry, I should have mentioned that the problem occurs when you, e.g., |
@andir what we tested was on a builtin derivation. Maybe |
FYI, Nix seems unlikely to extend this 211-character limit because ext4's filename limit is only 255 characters (see NixOS/nix@693e68e), so I think this'll need to be handled in npmlock2nix. |
Yeah, I'll add a fix & test to #82 tonight. |
@dhess I looked at your case again. After throwing away your lockfile I wasn't able to reproduce that exact error anymore. Instead I am seeing another issue with NPM not picking up the correct URL from the lockfile. I have no idea where that comes from. Let me know if you are available for a bit of a chat / interactive session in one of the coming days. I tried to message you on Matrix ( |
In chat, @andir pointed out that my @andir thinks that I'm hitting the 211-character limit because of these Nix store paths in the lockfile. I was able to recreate the I'm now working on adding Tailwind again with the new lockfile. |
This happens when you're using |
You can replace https://github.com/tweag/npmlock2nix/blob/5fc6505adec1bafc3ae9ebd2a28673f6f5ed9a75/internal.nix#L27-L30 with |
Does this still occur after #150? |
I’m not using this builder at the moment, so I can’t say. |
Describe the bug
I'm running into Nix's 211-character store path limit when packaging a simple React app:
To Reproduce
Unfortunately the source code for my app is not public, but everything has been going fine until I tried to include Tailwind via CRACO. You may be able to reproduce the same problem I'm having by using npmlock2nix to package the example app described here:
https://tailwindcss.com/docs/guides/create-react-app
Specifically, it's when I include the Tailwind dependencies that the problem arises:
https://tailwindcss.com/docs/guides/create-react-app#install-tailwind-via-npm
Expected behavior
I've filed an issue on Nix asking why this limit exists:
NixOS/nix#5086
Barring a Nix fix, is there any kind of workaround I can use at the
npmlock2nix
level?Environment
The text was updated successfully, but these errors were encountered: