Skip to content

More IO portability cleanups#15038

Merged
Ericson2314 merged 1 commit intoNixOS:masterfrom
obsidiansystems:drainfd-improvements
Feb 4, 2026
Merged

More IO portability cleanups#15038
Ericson2314 merged 1 commit intoNixOS:masterfrom
obsidiansystems:drainfd-improvements

Conversation

@Ericson2314
Copy link
Member

Motivation

  • options structs for drainFD (both versions)
  • portable read wrapper
  • portable GetFileSize wrapper
  • dedup readFile and drainFD using the above
  • Use drainFD in PosixSourceAccessor, avoiding manual IO
  • Remove fromDescriptorReadOnly entirely!

Context

Depends on #15028


Add 👍 to pull requests you find important.

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

@github-actions github-actions bot added new-cli Relating to the "nix" command store Issues and pull requests concerning the Nix store labels Jan 21, 2026
@dpulls
Copy link

dpulls bot commented Jan 22, 2026

🎉 All dependencies have been resolved !

@artemist artemist force-pushed the drainfd-improvements branch from e740188 to ef254ca Compare January 22, 2026 15:20
@Ericson2314 Ericson2314 marked this pull request as ready for review January 22, 2026 15:21
@Ericson2314 Ericson2314 requested a review from edolstra as a code owner January 22, 2026 15:21
- options structs for `drainFD` (both versions)
- portable `read` wrapper
- portable `GetFileSize` wrapper
- dedup `readFile` and `drainFD` using the above
- Use `drainFD` in `PosixSourceAccessor`, avoiding manual IO
- Remove `fromDescriptorReadOnly` entirely!
@Ericson2314 Ericson2314 enabled auto-merge February 4, 2026 21:20
@Ericson2314 Ericson2314 added this pull request to the merge queue Feb 4, 2026
Merged via the queue into NixOS:master with commit 25ab7f5 Feb 4, 2026
14 checks passed
@Ericson2314 Ericson2314 deleted the drainfd-improvements branch February 4, 2026 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-cli Relating to the "nix" command store Issues and pull requests concerning the Nix store

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants