opensmalltalk-vm: don't throw without aliases (#427246)

This commit is contained in:
Philip Taron
2025-07-21 16:01:32 -07:00
committed by GitHub
@@ -1,4 +1,5 @@
{
config,
stdenv,
lib,
fetchFromGitHub,
@@ -190,7 +191,11 @@ let
platform = stdenv.targetPlatform.system;
in
vmsByPlatform.${platform} or (throw (
"Unsupported platform ${platform}: only the following platforms are supported: "
+ builtins.toString (builtins.attrNames vmsByPlatform)
))
if (!config.allowAliases && !(vmsByPlatform ? platform)) then
# Don't throw without aliases to not break CI.
null
else
vmsByPlatform.${platform} or (throw (
"Unsupported platform ${platform}: only the following platforms are supported: "
+ builtins.toString (builtins.attrNames vmsByPlatform)
))