Merge pull request #300750 from amarshall/ruby-cargohash-failure

ruby: improve failure message when missing cargoHash
This commit is contained in:
Mario Rodas 2024-04-15 20:55:08 -05:00 committed by GitHub
commit a7721427c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -125,7 +125,7 @@ let
cargoDeps = if yjitSupport then rustPlatform.fetchCargoTarball {
inherit (finalAttrs) src;
sourceRoot = "${finalAttrs.pname}-${version}/${finalAttrs.cargoRoot}";
hash = cargoHash;
hash = assert cargoHash != null; cargoHash;
} else null;
postUnpack = opString rubygemsSupport ''