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

nix copy: falling back to dumb output on interactive terminal #3363

Closed
Profpatsch opened this issue Feb 18, 2020 · 0 comments
Closed

nix copy: falling back to dumb output on interactive terminal #3363

Profpatsch opened this issue Feb 18, 2020 · 0 comments

Comments

@Profpatsch
Copy link
Member

Profpatsch commented Feb 18, 2020

Original Motivation:

When using nix copy on CI (to push to an s3 bucket), usually the build times out after 10 minutes because nothing is printed to CI

Solution: use -v, CI will usually not be an interactive terminal

Issue:

Turning of the fancy output on interactive shells requires stderr to be redirected to a non-interactive pipe like this:

nix copy -v … 2>&1 | cat

which is a bit hard to find out.

Request:

Fall back to simple output if TERM is set to dumb (which is customary and should be the default when using terminfo (stackoverflow source).

edolstra added a commit that referenced this issue Feb 18, 2020
dtzWill pushed a commit to dtzWill/nix that referenced this issue Feb 18, 2020
Fixes NixOS#3363.

(cherry picked from commit d8fd31f)
(cherry picked from commit 2f0122b)
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

No branches or pull requests

1 participant