Skip to content

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

Merged
philiptaron merged 1 commit intoNixOS:masterfrom
wolfgangwalther:ci-eval-asserts-opensmalltalk-vm
Jul 21, 2025
Merged

opensmalltalk-vm: don't throw without aliases#427246
philiptaron merged 1 commit intoNixOS:masterfrom
wolfgangwalther:ci-eval-asserts-opensmalltalk-vm

Conversation

@wolfgangwalther
Copy link
Contributor

CI needs ugly workarounds to catch a throw on unsupported platforms. If aliases are disabled, as is the case in CI, we simply return null for this leaf package. This will ignore it for CI purposes, while still giving a proper error message for end users.

Similar solution to those in #426645.

Related: #426629.

Things done


Add a 👍 reaction to pull requests you find important.

CI needs ugly workarounds to catch a `throw` on unsupported platforms.
If aliases are disabled, as is the case in CI, we simply return `null`
for this leaf package. This will ignore it for CI purposes, while still
giving a proper error message for end users.
@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Jul 21, 2025
@jbaum98
Copy link
Contributor

jbaum98 commented Jul 21, 2025

Looks good to me! Thanks for this effort.

I think it would also make sense to get rid of the error message and return an empty set:

vmsByPlatform.${platform} or {}

If there aren't any VMs on that platform, we just return no VMs.

@nixpkgs-ci nixpkgs-ci bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Jul 21, 2025
@philiptaron philiptaron merged commit f3e80f8 into NixOS:master Jul 21, 2025
27 of 30 checks passed
@wolfgangwalther
Copy link
Contributor Author

I think it would also make sense to get rid of the error message and return an empty set:

That would be considerably simpler, yes. Since this is already merged, if you'd like to put this up as a PR, feel free to ping me for review.

@nixpkgs-ci
Copy link
Contributor

nixpkgs-ci bot commented Jul 22, 2025

Successfully created backport PR for release-25.05:

@github-actions github-actions bot added the 8.has: port to stable This PR already has a backport to the stable release. label Jul 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

8.has: port to stable This PR already has a backport to the stable release. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants