Skip to content

Conversation

@edolstra
Copy link
Member

Motivation

This denotes the result of a build that didn't succeed or fail, but was cancelled because some other goal failed and --keep-going was not enabled.

Cherry-picked from DeterminateSystems#217, where I'm trying to make nix flake check output more informative by showing which flake outputs failed, succeeded or were cancelled because of another failure, for example:

asciicast

Context


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

This denotes the result of a build that didn't succeed or fail, but
was cancelled because some other goal failed and --keep-going was not
enabled.
Copy link
Member

@Ericson2314 Ericson2314 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is good, but it poses a back-compat problem for older protocols.

I think what we should do is get rid the numbers in the definition of the enum, and instead have serializers for std::variant<BuildResult::Failure, BuildResult::Success>. Then if the protocol is too old, we can map the status to something else.

(We might also switch the protocol to strings while we are at it.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants