Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start building the scheduler for Windows #10678

Merged
merged 1 commit into from
May 27, 2024

Conversation

Ericson2314
Copy link
Member

Motivation

Building derivations is a lot harder, but the downloading goals is portable enough.

Context

The "common channel" code is due to Volth. I wonder if there is a way we can factor it out into separate functions / files to avoid some within-function CPP.

Priorities and Process

Add 馃憤 to pull requests you find important.

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

Building derivations is a lot harder, but the downloading goals is
portable enough.

The "common channel" code is due to Volth. I wonder if there is a way we
can factor it out into separate functions / files to avoid some
within-function CPP.

Co-authored-by: volth <volth@volth.com>
@roberth
Copy link
Member

roberth commented May 12, 2024

The PR as it is adds a lot of complexity in the form of ifdefs, which are of no help for our other use cases of pipes.
Could we have classes that implement the same interface on all platforms? E.g:

  • PipeEnds - currently called Pipe on POSIX; main responsibility is returning the two PipeDescriptors
  • PipeDescriptor - a Descriptor for a pipe end

This way we should get a reusable pipe abstraction that we can use in other places, and while taking advantage of the (mostly posix) type checking.

Copy link
Member

@edolstra edolstra left a comment

Choose a reason for hiding this comment

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

I agree it would be nice to have a better pipe abstraction, but that could be done in a followup PR.

@Ericson2314
Copy link
Member Author

I do have some WIP code cleaning this up already. I'll rebase on top.

@Ericson2314 Ericson2314 merged commit d0c7da1 into NixOS:master May 27, 2024
9 checks passed
@Ericson2314 Ericson2314 deleted the windows-substitution-goal branch May 27, 2024 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants