Add a warning infrastructure #10281
Labels
error-messages
Confusing messages and better diagnostics
feature
Feature request or proposal
language
The Nix expression language; parser, interpreter, primops, evaluation, etc
Is your feature request related to a problem? Please describe.
We have a bunch of behaviours (mostly in the evaluator, but probably not only) that we'd like to get rid of, but can't because of backwards-compatibility.
A good middle-ground solution is to keep them, but add a warning to prevent people from accidentally relying on them.
We currently never do that because doing so would require adding a way to opt-out easily, and
Describe the solution you'd like
Some infrastructure (similar to the
experimental-features
one?) allowing to declare warnings and expose a way to easily toggle them (or turn into hard errors) from the CLI or the configuration files.Describe alternatives you've considered
warn
) in a bunch of placesAdditional context
Random sampling of things that we might want to get warning for:
no-absolute-path-literals
experimental feature #8738no-url-literals
experimental feature #10048__curPos
keyword is undocumented #10036Priorities
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: