Port builtins.warn from CppNix #579
Labels
No labels
Affects/CppNix
Affects/Nightly
Affects/Only nightly
Affects/Stable
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/lix ci
Area/nix-eval-jobs
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/repl/debugger
Area/store
bug
Context
contributors
Context
drive-by
Context
maintainers
Context
RFD
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
imported
Language/Bash
Language/C++
Language/NixLang
Language/Python
Language/Rust
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
Topic/Large Scale Installations
ux
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#579
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
builtins.warn
is a simple builtin that makes evaluation time warnings with the ability to turn them into errors. It's implemented in CppNix and has no meaningful compatibility hazards, so we should port it!Here's the PR: https://github.com/NixOS/nix/pull/10592
I am going to try to port this. Looks like a good way to get to know the codebase a little better.
The introduction ofNIX_ABORT_ON_WARN
in the PR seems a bit arbitrary given that it isn't done for any of the other settings. 🤔Edit: never mind, it makes sense after reading https://github.com/NixOS/nixpkgs/pull/306026 and we should add it, too.
A small refactoring first: https://gerrit.lix.systems/c/lix/+/2245
we've already started a bunch of refactoring of this unholy mess, see eg
cl/2225
hm… better to wait for you to be done then, I suppose.
This issue was mentioned on Gerrit on the following CLs:
I abandoned the previous small refactoring, so 2248 is now the full feature.