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

Verifying no changes still broken? #1572

Open
badcel opened this issue Apr 13, 2022 · 1 comment
Open

Verifying no changes still broken? #1572

badcel opened this issue Apr 13, 2022 · 1 comment

Comments

@badcel
Copy link

badcel commented Apr 13, 2022

For me I can't run my github workflow including dotnet format as it silently fails with error message Process completed with exit code 2.

It is working if I pin the dotnet version to 6.0.102 here.

I call dotnet format --no-restore --verify-no-changes --exclude *.Generated.cs see here.

I have a PR to update to current dotnet here. It still fails despite it is using the new release see here. The version number can be seen here. There is no entry which states that a file would have been changed by the run which would explain the non 0 exit code.

The format is only verified under linux. The bug occured in parallel to #1519 but is not fixed with the most recent version update. Perhaps there is another bug?

@badcel badcel changed the title Verifying no changes still broken Verifying no changes still broken? Apr 13, 2022
@badcel
Copy link
Author

badcel commented Apr 15, 2022

I got the reason for the failed CI build. dotnet format outputs warnings which result in the non 0 exit code for version 6.0.202. For 6.0.102 the same warnings did not result in a non 0 exit code. If this is intended behaviour this issue can be closed.

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

No branches or pull requests

1 participant