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

Don't wrap output when output has been redirected to a file. #3743

Merged
merged 1 commit into from
Nov 5, 2020

Conversation

rolfbjarne
Copy link
Contributor

Bug

Fixes: NuGet/Home#10198
Regression: I think so (since this has been fixed twice, the first time like I'm proposing here).

  • Last working version: don't know
  • How are we preventing it in future:

Fix

This was introduced as a fix for NuGet/Home#1893, which was previously fixed like I'm proposing here (NuGet/NuGet2@98d15b3).

I can't see a reason to wrap output when it has been redirected to a file, so I'm proposing to apply the original fix.

Testing/Validation

Tests Added: No
Reason for not adding tests: it would require running nuget on mono as a subprocess with output redirected to a file
Validation:

This was introduced as a fix for NuGet/Home#1893,
which was previously fixed like I'm proposing here
(NuGet/NuGet2@98d15b3).

I can't see a reason to wrap output when it has been redirected to a file, so
I'm proposing to apply the original fix.
@rolfbjarne rolfbjarne requested a review from a team as a code owner October 29, 2020 12:18
@zivkan zivkan added the Community PRs created by someone not in the NuGet team label Oct 29, 2020
@zivkan zivkan self-assigned this Nov 5, 2020
@zivkan zivkan merged commit 97f7d2f into NuGet:dev Nov 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community PRs created by someone not in the NuGet team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Output is wrapped at 80 characters on macOS when redirected
3 participants