Skip to content

Commit

Permalink
fixup! warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
Atemu committed Dec 5, 2024
1 parent 5192fb7 commit 1f1a3b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkgs/build-support/fetchgit/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ assert nonConeMode -> (sparseCheckout != []);
let
revWithTag =
let
warningMsg = "fetchgit requires either `rev` xor `tag`.";
warningMsg = "fetchgit requires one of either `rev` or `tag` to be provided (not both).";
otherIsNull = other: lib.assertMsg (other == null) warningMsg;
in
if tag != null then
Expand Down
2 changes: 1 addition & 1 deletion pkgs/build-support/fetchgithub/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ lib.makeOverridable (
, ... # For hash agility
}@args:

assert (lib.assertMsg (lib.xor (tag == null) (rev == null)) "fetchFromGitHub requires either `rev` xor `tag`.");
assert (lib.assertMsg (lib.xor (tag == null) (rev == null)) "fetchFromGitHub requires one of either `rev` or `tag` to be provided (not both).");

let

Expand Down

0 comments on commit 1f1a3b7

Please sign in to comment.