From 587708f34a7833bb8f191780ca76591e444a8ab3 Mon Sep 17 00:00:00 2001 From: drbh Date: Mon, 11 May 2026 12:09:46 -0400 Subject: [PATCH] fix: update nix warns to throws Co-authored-by: Copilot --- flake.nix | 2 +- nix-builder/lib/gen-flake-outputs.nix | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 58424c8a7..dbb94dd4a 100644 --- a/flake.nix +++ b/flake.nix @@ -73,7 +73,7 @@ torchVersions'; in builtins.toJSON buildVariants; - genFlakeOutputs = builtins.warn '' + genFlakeOutputs = builtins.throw '' `genFlakeOutputs` was renamed to `genKernelFlakeOutputs` and will be removed in kernel-builder 0.14. '' genKernelFlakeOutputs; diff --git a/nix-builder/lib/gen-flake-outputs.nix b/nix-builder/lib/gen-flake-outputs.nix index 82e3eb0a7..c00470ddf 100644 --- a/nix-builder/lib/gen-flake-outputs.nix +++ b/nix-builder/lib/gen-flake-outputs.nix @@ -25,12 +25,12 @@ let ''; flakeRev = if self != null then - self.shortRev or self.dirtyShortRev or (builtins.warn '' + self.shortRev or self.dirtyShortRev or (builtins.throw '' Kernel is not in a git repository, this will create a non-reproducible build. This will not be supported in the future. '' self.lastModifiedDate) else if rev != null then - builtins.warn "`rev` argument of `genKernelFlakeOutputs` is deprecated, pass `self` as follows:\n\n${supportedFormat}" rev + builtins.throw "`rev` argument of `genKernelFlakeOutputs` is deprecated, pass `self` as follows:\n\n${supportedFormat}" rev else throw "Flake's `self` must be passed to `genKernelFlakeOutputs` as follows:\n\n${supportedFormat}";