dotnet / dotnet/format

Verifying no changes still broken?

Open
#1,572 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
1.9k
Forks
173
Avg merge
10d 13h
Merged PRs (30d)
1

Description

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](https://github.com/gircore/gir.core/blob/9da8e43d849fb2b3eba029f0d77a9e4bdf3c5fc9/.github/workflows/ci.yml#L32).

I call `dotnet format --no-restore --verify-no-changes --exclude *.Generated.cs` [see here](https://github.com/gircore/gir.core/blob/9da8e43d849fb2b3eba029f0d77a9e4bdf3c5fc9/.github/workflows/ci.yml#L44).

I have a PR to update to current dotnet [here](https://github.com/gircore/gir.core/pull/564). It still fails despite it is using the new release see [here](https://github.com/gircore/gir.core/runs/6012632162?check_suite_focus=true#step:6:27). The version number can be seen [here](https://github.com/gircore/gir.core/runs/6012632162?check_suite_focus=true#step:3:6). 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 https://github.com/dotnet/format/issues/1519 but is not fixed with the most recent version update. Perhaps there is another bug?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.