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