-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
nixos/i18n: don't build all supportedLocales by default #177318
Conversation
0641d8b
to
515b36c
Compare
This broke any custom |
Shouldn't this have been announced here: https://discourse.nixos.org/t/breaking-changes-announcement-for-unstable/17574? Either way, wouldn't it make more sense to default to something like:
|
I didn't even know that thread existed.
Please do a PR with that.
Presumable only when they are set to something other than your display language? |
That's their only use, yes. They default to the display language, so you don't need the override if it's the same. |
I think unconditionally generating |
No, that’s not how that works. You can’t break other people’s systems and then tell them to fix it themselves. |
So we should revert this and reevaluate. |
Like, for example, not generating |
If someone is presenting me a working code solution to a problem I think it is very reasonable to ask them to create a PR with that. The other option I would have would be to commit it as my own and then ask the same person to test their own code which is a bit weird.
That is wrong. Every change has the potential to break something somewhere in some combination of the infinity of potential system combinations. We can only consider so much when doing a change. That's why I wrote a changelog entry because I knew before that if people relied silently on other locales their setup would break. There is just no other way to not break this. I and two reviewers didn't think about Also my time is not infinite and between real life and other work and projects I might only find time to do this in a few days in which the fix could have been already be commited, merged and be on unstable.
Instead of hastily reverting changes and later reverting the revert, we should first consider if a small addition/change of code fixes those use cases or people need to adopt their config and explicitly mention a locale.
First of all, I know how locales work and the special meaning behind c.utf-8. Then this must have been broken for a good amount of time in the minimal profile which is used in containers similar to Now back to fixing this instead of doing discussions. First of all a big thanks to @gravndal for the two PRs fixing the situation when more complex settings are used. I'll really appreciate it. Also regarding to #179486 : This must have been always broken but since we generated all locales by default this was never noticed. So to say we unconvered more bugs with this change that where always there. Then why I didn't notice this while testing: I had |
Given that this PR has neither any description, nor a commit description, I would not assume much thought has been put into possible breakage. |
It's called "unstable" for a reason… |
I wanted to write that, too. 😂 Yes, breakages can happen even if we all try our best to avoid them.
yeah, I should do them more often but usually I just skip them because I don't read them that often when reviewing either. C.UTF-8 fixup is in #180513 |
See NixOS/nixpkgs#177318 for the lovely change that causes your locales to disappear.
If this is what's causing #179607, please revert this. It's causing my system to fail to build in my language, and everyone else who also uses Nixos in that language. |
I don't think that is good way to move this forward. I'd rather add an exception for that language instead of reverting improvements which where much needed and everyone benefits of. |
Another issue #183960 |
@Artturin I don't think that's actually caused by this. From some limited testing, it seems that if your current configured locales don't match the new supported locales reliably triggers those warnings. A situation likes this can naturally occur if you're removing a locale from your This happens (I think) because my current shell sessions still exports the, now old, Edit: though, actually, that's just the warnings, not the error... Also:
This wasn't ever backported was it? |
Description of changes
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes