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

Do not go beyond the root when searching for a previously installed tool Fixes #40655 #40800

Draft
wants to merge 7 commits into
base: release/8.0.4xx
Choose a base branch
from

Conversation

Forgind
Copy link
Member

@Forgind Forgind commented May 10, 2024

Fixes #40655

dotnet tool install currently looks for a previously installed tools manifest. It reads manifests it finds in looking for one that has the manifest it's trying to install but does not check whether that manifest 'isRoot', which means it keeps going outside the root.

We don't use a tool beyond the root, which means we can't install then use a tool as would be expected.

@nagilson, can you take a look at this? I don't know all that much about dotnet tool.

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Tools untriaged Request triage from a team member labels May 10, 2024
@dsplaisted
Copy link
Member

@Forgind Could you add a test that covers this behavior? The issue has some repro steps which could probably be adapted to a test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Tools untriaged Request triage from a team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants