Conversation
|
Any suggestions for disabling it only for the flutter_secure_storage_linux? Related issue: |
|
You should fix the code instead of disabling Werror. You can modify the code using customSourceBuilders or modify the https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/compilers/dart/package-source-builders/flutter-secure-storage-linux/default.nix file |
Less Werror in projects means less churn on updates and staging runs. 👍🏼
Upstream should fix their code but having Werror in nixpkgs just breaks projects on gcc updates and creates useless churn. Werror is a development flag and most warnings related around type annotations and other subtle c/c++ things which a none c/c++ developer cannot fix realistically. I mean in the merged patch the warning was also just disabled which is equal to just turning off Werror. |
I've reached out to the nixpkgs core team for a stance on this matter, I'm willing to go in either direction as long as we uniformly document and enforce it. |
29be045 to
63c863b
Compare
Maybe open a tracking issue? |
Any stance regarding this? #451855 have a similar issue. So far only |
|
Sorry for the slow response from the Nixpkgs core team; Alyssa has been sick and we’re getting back into things now. We are discussing this and I hope to have a team reply in the next couple days. |
|
Sorry for the belated response! We agreed on the following:
Speaking more for myself here, in this case, it’s not clear that patching out
Generally, when a language feature is deprecated, it first becomes an opt‐in warning, then a default warning, then an error‐by‐default warning, and potentially a hard error in future standard versions. When it transitions from warning by default to erroring by default, I think the maintenance burden depends on what we expect from upstreams: if we think they’ll fix it before it becomes a hard error, when they upgrade their compiler and run into the (We don’t have any immediate team consensus opinion on the ideal way to handle |
|
Thank you for taking the time to write such a thorough response! Until there is a different nixpkgs wide consensus, I will say that I as a package maintainer prefer to selectively disable warnings. So as the maintainer of this package, considering that the build issue itself was already fixed by the prior approach, I will close this PR. |
|
Thank you to @emilazy and the Nixpkgs core team for taking the time to clarify this. Your explanation was very helpful in resolving this issue. I hope this thorough response can be documented somewhere easily accessible for future contributors who encounter similar situations. |
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/nixpkgs-core-team-update-2025-11-04/71742/1 |
As per the recommendation from @SuperSandro2000 in this comment: #449770 (comment) , patching out Werror is the preferred method for handling this error.
This PR introduces those changes to patch out Werror for
ente-auth, presenting us warnings instead of failing build.Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.