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

[Bug] Error when trying to set "Branch Increment mode" #3716

Closed
pampua84 opened this issue Oct 5, 2023 · 5 comments
Closed

[Bug] Error when trying to set "Branch Increment mode" #3716

pampua84 opened this issue Oct 5, 2023 · 5 comments
Labels
Milestone

Comments

@pampua84
Copy link
Contributor

pampua84 commented Oct 5, 2023

Hi,
after running the dotnet-gitversion init command from the command line, I try to set " Branch Increment mode" by pressing 5 button, but the following error message appears:

A suitable constructor for type 'GitVersion.Configuration.Init.SetConfig.GlobalModeSetting' could not be located. Ensure the type is concrete and services are registered for all parameters of a public constructor.

Environment

  • Windows 11
  • GitVersion 5.12.0+Branch.support-5.x.Sha.3f75764963eb3d7956dcd5a40488c074dd9faf9e
@pampua84 pampua84 added the bug label Oct 5, 2023
@pampua84
Copy link
Contributor Author

pampua84 commented Oct 9, 2023

Going through the code and doing a more in-depth search, I saw that the constructor on the branch main has gone back to being protected. Related issue #1942

This is the exception:

A suitable constructor for type 'GitVersion.Configuration.Init.SetConfig.GlobalModeSetting' could not be located. Ensure the type is concrete and services are registered for all parameters of a public constructor.

@arturcic
Copy link
Member

arturcic commented Oct 9, 2023

Thanks for the time spent on debugging. I will merge the change

@arturcic arturcic added this to the 6.x milestone Oct 9, 2023
@pampua84
Copy link
Contributor Author

pampua84 commented Oct 9, 2023 via email

@arturcic
Copy link
Member

arturcic commented Oct 9, 2023

for some reason not related to your PR the tests on macos sometimes does not work as expected. That seems to be something with the macos agents. I need to find some time to find the root cause, but that won't happen soon

@arturcic arturcic modified the milestones: 6.x, 6.0.0-beta.4 Dec 12, 2023
@arturcic
Copy link
Member

🎉 This issue has been resolved in version 6.0.0-beta.4 🎉
The release is available on:

Your GitReleaseManager bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants