豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

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

Merged
zivkan merged 1 commit intoNuGet:devfrom
rolfbjarne:infinite-file-width
Nov 5, 2020
Merged

Don't wrap output when output has been redirected to a file.#3743
zivkan merged 1 commit intoNuGet:devfrom
rolfbjarne:infinite-file-width

Conversation

@rolfbjarne
Copy link
Copy Markdown
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