From a944373fa126697db29da2a4ac92b417cf6e20d6 Mon Sep 17 00:00:00 2001 From: Eman Resu <78693624+quatquatt@users.noreply.github.com> Date: Tue, 26 May 2026 14:11:10 -0400 Subject: [PATCH] build-support/fetchbitbucket: remove assertMsg usage --- pkgs/build-support/fetchbitbucket/default.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkgs/build-support/fetchbitbucket/default.nix b/pkgs/build-support/fetchbitbucket/default.nix index 31dc8b6bec83..9a2fae1ec164 100644 --- a/pkgs/build-support/fetchbitbucket/default.nix +++ b/pkgs/build-support/fetchbitbucket/default.nix @@ -24,9 +24,8 @@ lib.makeOverridable ( }@args: assert ( - lib.assertMsg (lib.xor (tag == null) ( - rev == null - )) "fetchFromBitbucket requires one of either `rev` or `tag` to be provided (not both)." + lib.xor (tag == null) (rev == null) + || throw "fetchFromBitbucket requires one of either `rev` or `tag` to be provided (not both)." ); let