diff --git a/doc/release-notes/rl-2611.section.md b/doc/release-notes/rl-2611.section.md index ce3330d0b967..c16ca66b1fca 100644 --- a/doc/release-notes/rl-2611.section.md +++ b/doc/release-notes/rl-2611.section.md @@ -142,10 +142,11 @@ ### Deprecations {#sec-nixpkgs-release-26.11-lib-deprecations} -- Create the first release note entry in this section! +- Setting `config.allowBrokenPredicate` is deprecated in favor of + using `config.problems.handlers.PackageName.broken = "warn"` (or `= + "ignore"`). For more information see [](#sec-allow-broken). ### Additions and Improvements {#sec-nixpkgs-release-26.11-lib-additions-improvements} - Create the first release note entry in this section! - diff --git a/pkgs/test/problems/cases/allow-broken-predicate-match/default.nix b/pkgs/test/problems/cases/allow-broken-predicate-match/default.nix index 7869bc996809..df18d357e1e8 100644 --- a/pkgs/test/problems/cases/allow-broken-predicate-match/default.nix +++ b/pkgs/test/problems/cases/allow-broken-predicate-match/default.nix @@ -5,7 +5,7 @@ let system = "x86_64-linux"; overlays = [ ]; config = { - allowBrokenPredicate = attrs: lib.getName attrs == "a"; + problems.handlers.a.broken = "ignore"; }; }; in diff --git a/pkgs/test/problems/cases/invalid-kind-error/expected-stderr b/pkgs/test/problems/cases/invalid-kind-error/expected-stderr index 6fdf2b1d04b1..0d7cb8f874b6 100644 --- a/pkgs/test/problems/cases/invalid-kind-error/expected-stderr +++ b/pkgs/test/problems/cases/invalid-kind-error/expected-stderr @@ -1,4 +1,4 @@ (stack trace truncated; use '--show-trace' to show the full, detailed trace) error: Refusing to evaluate package 'a-0' in /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-default.nix:11 because it has an invalid meta attrset: - - a.meta.problems.invalid: Problem kind invalid, inferred from the problem name, is invalid; expected enum. You can specify an explicit problem kind with `a.meta.problems.invalid.kind` + - a.meta.problems.invalid: Problem kind invalid, inferred from the problem name, is invalid; expected enum. You can specify an explicit problem kind with `a.meta.problems.invalid.kind`