-
Notifications
You must be signed in to change notification settings - Fork 255
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
Disallow dotnet restore
at OS root
#13131
Comments
@richlander Issue is missing Type label, remember to add a Type label |
@rainersigwald The linked issue had the user stalling out during (I think) evaluation when a glob would have included system root - didn't we do something recently in MSBuild around detecting/logging/warning when an item glob including the root is expanded? |
dotnet/msbuild#7029 added warnings like
But even groveling a whole container filesystem shouldn't hang indefinitely. Maybe something is getting caught in a symlink loop? |
Perhaps the CLI should provide this error/warning. I'd like to this as an error and require some |
Should we move this issue then? |
@jeffkl seems reasonable to me, yeah. |
Does the CLI have appropriate context on the context of the build/restore? |
It already knows the working directory that it's invoked from, and the project/solution that will be built - we could check either/both of those to safety-check before actually invoking MSBuild. |
Sounds good. I'll close this issue and make a feature request at dotnet/sdk since issue transfer doesn't work across orgs (AFAIK). |
I have seen this issue multiple times.
dotnet/dotnet-docker#5085
The text was updated successfully, but these errors were encountered: