-
-
Notifications
You must be signed in to change notification settings - Fork 99
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
csharpier as msbuild dependency doesn't fail the github action anymore #1357
Comments
this started to happen with 0.29.0. probably the issue is here:
|
@belav as this is still blocking us, are you aware of a workaround to fail the build when csharpier is reporting an error? |
@OneCyrus hey sorry I lost track of this one, I'll see if it's something I can resolve today for you |
@OneCyrus IgnoreExitCode is behaving inconsistently between linux and windows. That was added to cleanup the output. With the new PR, windows outputs this when it runs into unformatted files
vs linux, which duplicates the error.
I'm thinking release this as is, and come back later and try to clean up the duplication. |
I see. While it's not perfect I would still prefer duplicated messages if this would result in reporting issues as errors again. |
I think inconsistency is in that on Windows error message, due to colon ( |
I suspect changing CSharpier output from |
As CSharpier currently does not output error messages in MSBuild compatible format, adapt Exec options to current error format. Should fix #1357.
…rpier.msbuild. Add new msbuild tests. closes #1357
…rpier.msbuild. Add new msbuild tests. closes #1357
As CSharpier currently does not output error messages in MSBuild compatible format, adapt Exec options to current error format. Should fix belav#1357.
…lav#1396) The changes for belav#1311 seem to work in windows, but cause problems in linux. Files that aren't formatted are no longer treated as errors. closes belav#1357
Environments:
Steps to reproduce:
dotnet build --configuration Release /p:CSharpier_LogLevel=Error
Expected behavior:
we are running csharpier as msbuild dependency and want the build to fail of the code is not formatted. it used to work before but currently even when an error is detected the build succeeds and the github action workflow doesn't fail.
formatting error is detected correctly:
build fails:
Actual behavior:
build succeeds and the exit code doesn't fail the github action job.
The text was updated successfully, but these errors were encountered: