-
Notifications
You must be signed in to change notification settings - Fork 64
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
[BUG] Format executor fails when installed dotnet-format is out of date #202
Comments
Hey Ben, this is similar to #179, but has a different root cause. They should probably be handled in the same PR. Do you want to work on this? I'll assign it to you if so. Otherwise, I can take a look at this sometime this weekend. |
I can work on it this week. Which version strategy do you want to go with? |
It should go something like this: If already specified in json file, leave as is. (user can update there tools file to update) Make sure to take a look at #179, as in .NET SDK 6+ we don't want to install the tool at all as it is part of the .NET SDK itself, unfortunately they also decided it was worth changing the |
I'm not sure if you are participating in Hacktoberfest at all, but it holds a soft spot in my heart. This repo's participating so if you want the free shirt and stuff you'll be at least a quarter of the way there 😋 |
Do not install the tool if it is already installed or if part of the SDK Fixes #202
🎉 This issue has been resolved in version 1.4.3 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Describe the bug
The 3rd-party tool dotnet-format recently published an update (5.1.250801). After this update, all of my dotnet lint targets started failing with the following error
To Reproduce
dotnet-tools.json
manifest file (e.g. 5.1.225507)nx lint my-dotnet-proj
)Expected behavior
The executor should properly handle out-of-date versions so that the lint target can still run.
Environment:
Additional context
The error is directly caused by the redundant tool install before running dotnet-format. One possible strategy for handling out-of-date versions is to update to the latest version each time. Another possible strategy is to lock-in to a specific version (as Nx does with Angular) and avoid re-installing the tool after that.
The text was updated successfully, but these errors were encountered: