code cleanup: remove json output formatter#2019
code cleanup: remove json output formatter#2019jetersen wants to merge 1 commit intoGitTools:masterfrom jetersen:fix/remove-json-output-formatter
Conversation
|
I much have a twitchy finger 😭 |
|
|
||
| public override string ToString() | ||
| { | ||
| var builder = new StringBuilder(); |
There was a problem hiding this comment.
Would you prefer I moved this to a JsonBuilder?
So it could be reused by #2017 ?
There was a problem hiding this comment.
Hm. How would a generic JsonBuilder look like? If you have a suggestion, please add it to the PR.
|
Not sure why build is failing |
|
🤷♂ Not sure what makes this minor change explode the entire testsuite. |
|
Would love to add an generic JsonBuilder but it does not help when CI is utterly bogus 😭 |
|
Good question, @Casz. Seems like there's some cleanup job that fails. |
|
Not sure why this would be a problem, but on the AppVeyor build there is this: It is a little coincidental that the branch name for the PR starts with |
|
That sounds both crazy and plausible at the same time, @gep13. Why would a branch name cause an |
|
Trying to run tests locally I get: |
|
|
|
Think I figured it out, it related to https://github.com/cake-build/cake/tree/develop/src/Cake.Common/Tools/GitVersion basically this is a breaking change. |
|
@Casz just so I am clear... are you saying that we would need to update the Cake aliases for GitVersion to account for the change that you are making here? I haven't been following this issue/PR very closely, but can you give me a recap of the change that is being made here, and what would need to change in Cake to make this happen? |
|
The idea was to Remove the JSON output formatter and override the to string method |
That part I understand, but why is this a breaking change? What specifically needs to be addressed in the Cake aliases to account for this? |
|
Not sure I haven't had a chance to dig into the code. I just see it's going through the GitVersionAlias and complains about the JSON Output: See: Specifically: |
|
Do we have a comparison of what is output before and after this change? |
|
The issue is located in the GitVersionInternal method as I have changed the ToString method. |
|
Let me try and revert the ToString method change. |
|
No... not related to my changes. I reset my branch to |
|
@Casz ok, can we go back to my suggestion regarding the branch name? Can you submit your PR from a different branch name, so that we can rule that out. And if that is the problem, then we have a bug that needs to be addressed. |
|
I tried see #2058 |
|
but it's also failing locally when I checkout |
|
FYI!!!! This is also failing in CI on Master branch but we are apparently ignoring it: https://ci.appveyor.com/project/GitTools/gitversion/builds/30222649#L138 |
Results in |
|
Okay, I recloned the repo, and now I am not seeing any failures locally 🤔 |
|
Hmm locally it works now, I need to prune or recreate my repo somehow... |
No description provided.