-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
With .Net 6 Preview7, failed to open '/etc/dotnet/install_location' when running dotnet tool #56219
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
@mikem8361 could you look into this install_location issue? |
Why did I get assigned this issue? |
Tagging subscribers to this area: @vitek-karas, @agocke, @VSadov Issue DetailsRepro steps:
Expected Result: Actual Result: Note: Not repro Windows10 Dotnet info: Runtime Environment: Host (useful for support): .NET SDKs installed: .NET runtimes installed: To install additional .NET runtimes or SDKs:
|
I'm gonna give this a shot of fixing (to refresh my linux debugging non-skills). |
Looks like that error should not be printed, but it is not causing any other side effects (the process is not exiting) so I don't think this is blocking |
It is blocking - we can't alter an output (stderr or stdout) of a console app if it works - the entire functionality of the app might be to print something to stderr and if something else tries to parse it it would be broken. |
We must change this to info: runtime/src/native/corehost/hostmisc/pal.unix.cpp Lines 441 to 445 in 09e1608
|
This is blocking Preview 7? |
I have a candidate fix https://github.com/dotnet/runtime/compare/main...vitek-karas:FixErrorOnInstallLocation?expand=1 Trying to test it. |
Blocking Preview 7 - don't know - it might. It's pretty bad and there's really no work around (creating the file is one, but one needs to know what to put into it). |
The app will still run, but we must not print out anything in that case. Fixes #56219
Repro steps:
dotnet tool install -g doTNetsay
dotnet tool list -g
dotnetsay
Expected Result:
Tool dotnetsay can be run successfully
Actual Result:
Failed to open '/etc/dotnet/install_location' when running dotnet tool:
The install_location file ['/etc/dotnet/install_location'] failed to open: No such file or directory.
Note: Not repro Windows10
Dotnet info:
.NET SDK (reflecting any global.json):
Version: 6.0.100-preview.7.21369.19
Commit: cdbd475cb6
Runtime Environment:
OS Name: ubuntu
OS Version: 18.04
OS Platform: Linux
RID: ubuntu.18.04-x64
Base Path: /usr/share/dotnet/sdk/6.0.100-preview.7.21369.19/
Host (useful for support):
Version: 6.0.0-preview.7.21368.2
Commit: 8d3afa3
.NET SDKs installed:
6.0.100-preview.7.21369.19 [/usr/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.0-preview.7.21369.1 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.0-preview.7.21368.2 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-download
The text was updated successfully, but these errors were encountered: