Skip to content

Conversation

Ericson2314
Copy link
Member

Motivation

It is good to propagate the underlying error so whether or not we use a process to deal with path length issues is not observable.

Also, as these wrapper functions got more and more complex, the code duplication got worse and worse. The new bindConnectProcHelper function deduplicates them.

Context

#8544

Priorities and Process

Add 👍 to pull requests you find important.

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

It is good to propagate the underlying error so whether or not we use a
process to deal with path length issues is not observable.

Also, as these wrapper functions got more and more complex, the code
duplication got worse and worse. The new `bindConnectProcHelper`
function deduplicates them.
@tfc
Copy link
Contributor

tfc commented Jan 18, 2024

Very elegant!

Copy link
Member

@thufschmitt thufschmitt left a comment

Choose a reason for hiding this comment

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

Nice :)

@thufschmitt thufschmitt merged commit 2867424 into NixOS:master Jan 18, 2024
@Ericson2314 Ericson2314 deleted the bind-proc-syserror branch January 18, 2024 14:53
tebowy pushed a commit to tebowy/nix that referenced this pull request Jul 11, 2024
`bind`: give same treatment as `connect` in NixOS#8544, dedup

(cherry picked from commit 2867424)
Change-Id: I1ac5fc43fa10ec5f37a226730c3d84033fdbfd52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants