-
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] nx lint fails on dotnet project #179
Comments
Yikes, I didn't expect that option to change. That seems like a breaking change for no good reason on the Thanks for the report. |
@dasco144 What version of the .NET SDK are you using? I'm using SDK 5.0.402. Using both dotnet-format 5.1.225507 and 5.1.250801, I see the
Similarly, using the |
Yes I think it is related to the dotnet 6 preview. I installed the Visual Studio 2022 preview and it installed the dotnet 6 preview with it, and the cli seems to use the latest installed version. Dotnet format is being added to the cli with dotnet 6 so that seems to be the reason for the change (as per the note here) |
Thanks for the link to that thread. Having read it, it appears that v5 uses @AgentEnder The bundled version has several other breaking changes besides the one flag. How do you want to handle the migration from v5 to v6? |
Hey @bcallaghan-et, yeah there are a few other breaking changes but I think thats the only one that directly impacts our defaults. For your PR I'd recommend adding some logic that detects if .NET 6 is the installed SDK, and if it is skip the tool install. If it is than also just swap the arg when being passed. I'll take a closer look at all of the breaking changes in format and see if there is something we can do to help with a more full migration. With .NET 6 being a preview this isn't a huge deal yet, as long as the executors can still run. Honestly, for now, I could see us detecting the .NET 6 SDK and warning and skipping the actual format, while we get this behavior worked out. |
Pass the correct "check" option depending on the SDK version Fixes #179
🎉 This issue has been resolved in version 1.4.3 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
@AgentEnder @bcallaghan-et I'm not able to lint my projects after this update, getting the following error:
I'm on version |
@pemsbr I'm going to break this out into a separate issue, I've identified problem and will get it resolved. |
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 nx lint command fails on the dotnet project due to the
check
argument being removed in favour ofverify-no-changes
hereTo Reproduce
Expected behavior
The command should run and not fail
Screenshots
Environment:
Additional context
When manually running the same command with
check
replaced withverify-no-changes
, it works as expectedThe text was updated successfully, but these errors were encountered: