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

Fix an error printed out when install_location file is missing #56327

Merged
merged 2 commits into from
Jul 27, 2021

Conversation

vitek-karas
Copy link
Member

The app will still run, but we must not print out anything in that case.

Fixes #56219

The app will still run, but we must not print out anything in that case.
@vitek-karas vitek-karas added this to the 6.0.0 milestone Jul 26, 2021
@vitek-karas vitek-karas self-assigned this Jul 26, 2021
@ghost
Copy link

ghost commented Jul 26, 2021

Tagging subscribers to this area: @vitek-karas, @agocke, @VSadov
See info in area-owners.md if you want to be subscribed.

Issue Details

The app will still run, but we must not print out anything in that case.

Fixes #56219

Author: vitek-karas
Assignees: vitek-karas
Labels:

area-Host

Milestone: 6.0.0

Copy link
Contributor

@mateoatr mateoatr left a comment

Choose a reason for hiding this comment

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

Thanks!

agocke
agocke previously requested changes Jul 26, 2021
defaultInstallLocation)
.DotNetRoot(null)
.Execute()
.Should().NotHaveStdErrContaining("The install_location file");
Copy link
Member

Choose a reason for hiding this comment

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

I think we should test the exact output, not just that it doesn't have install_location, since the problem is that the app is creating extra output at all.

Copy link
Member Author

Choose a reason for hiding this comment

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

True - but we don't test that anywhere else... so it would be a more "risky" change I guess.
It's definitely something we should test going forward though.

@agocke
Copy link
Member

agocke commented Jul 26, 2021

/backport to release/6.0-preview7

@github-actions
Copy link
Contributor

Started backporting to release/6.0-preview7: https://github.com/dotnet/runtime/actions/runs/1069045335

@agocke
Copy link
Member

agocke commented Jul 26, 2021

/azp run runtime

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@agocke agocke force-pushed the FixErrorOnInstallLocation branch from 28105b4 to 50faa41 Compare July 26, 2021 23:15
@agocke
Copy link
Member

agocke commented Jul 26, 2021

Never mind, I didn't understand quite what the test was testing -- the install location here is gone and there's no global runtime installed, so there must be an error, it's just a question of whether the install location file name is included in the message.

Copy link
Member

@agocke agocke left a comment

Choose a reason for hiding this comment

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

LGTM

@agocke agocke merged commit 5397d30 into dotnet:main Jul 27, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Aug 26, 2021
@vitek-karas vitek-karas deleted the FixErrorOnInstallLocation branch September 26, 2023 09:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

With .Net 6 Preview7, failed to open '/etc/dotnet/install_location' when running dotnet tool
3 participants