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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ProgressBar::ask: accept EOF, as a no #11816

Merged
merged 3 commits into from
Nov 6, 2024

Conversation

roberth
Copy link
Member

@roberth roberth commented Nov 6, 2024

Motivation

This may occur when stderr is a tty but stdin is empty. For example:

$ nix build </dev/null
error: unexpected EOF reading a line

This configuration of stdio handles is how some non-interactive sandboxes behave, including the Nix build sandbox and Hercules CI Effects.

Context

Priorities and Process

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 the with-tests Issues related to testing. PRs with tests have some priority label Nov 6, 2024
This may occur when stderr is a tty but stdin is empty.
E.g.

    $ nix build </dev/null
    error: unexpected EOF reading a line

These stdio handles are how some non-interactive sandboxes behave,
including the Nix build sandbox and Hercules CI Effects.
@roberth roberth merged commit 1af94bf into NixOS:master Nov 6, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
with-tests Issues related to testing. PRs with tests have some priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants