-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
commitIdFromGitRepo: fix stackoverflow if many branches are used. #93337
Conversation
If many branches are created than builtins.match stack overflows because of a bug in libstdc++: see NixOS/nix#2147
It's with a heavy heart that I'm ❤️ ing this, since it's terrible and shouldn't be necessary. But at the same time I'm happy for a workaround. (fixes #42379) |
IMHO a function like |
@edolstra Do you have an example of how one would use |
|
|
I would leave |
Backported to 20.03: e7c435c |
I guess an @edolstra -approved solution might be making |
Well now with flakes nixpkgs the git is copied to nix store now every time anyway. |
There is an issue about that: NixOS/nix#3121 |
If many branches are created than builtins.match stack overflows because
of a bug in libstdc++: see NixOS/nix#2147
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)