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 cache calls to dotnet info #6180

Merged
merged 2 commits into from
Aug 21, 2023

Conversation

dibarbet
Copy link
Member

@dibarbet dibarbet commented Aug 19, 2023

Now that we call dotnet info on startup, we can cache a different value than other callers are expecting (different callers pass in different CLI paths which should output different dotnet info).

The fix is to not cache this because the inputs can change. We do not call this that often that we should need to cache it either.

Also updates the logging to indicate why a potential call to dotnet info failed.

Possibly related to #6179 and #6177 . It doesn't entirely fix them, but it resolves some potential problems.

@dibarbet dibarbet merged commit 11e3a9d into dotnet:main Aug 21, 2023
4 checks passed
@dibarbet dibarbet deleted the do_not_cache_dotnet_info branch August 21, 2023 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants