-
Notifications
You must be signed in to change notification settings - Fork 652
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] Object reference not set to an instance of an object during versioning solving #2967
Comments
Okay, rebase to master fixed the issue but it could be great to have such custom exception here to be more described. |
If you are able to provide a public repository that reproduces this problem, it should be easy to fix. We don't want |
@asbjornu |
@asbjornu |
I'm getting this issue with a private repo, so can help validate a fix if needed. |
@davidkeaveny, can you please clone or fork GitVersion locally and run it against your repository to get a line numbered stack trace? If you're adventurous, it would be awesome if you found the source of the NRE and fixed it too. |
I think I've managed to find the source of the issue you're experiencing, @rafek1241. As I'm not using Mainline myself, I'm not sure why this code is exactly as it is, but this line in
And for the reproduction repository you've provided, no branches have a What I think could work here is for Mainline to defer to |
I think I've solved this in #3018. I still need to add a test and it should be good to go. I'm not yet confident that I'm able to reproduce the problem in a test, though. |
Add test for GitToolsGH-2967. Unfortunately, it does not reproduce the `NullReferenceException`, but it may be useful as a regression test in the future. ¯\_(ツ)_/¯
🎉 This issue has been resolved in version 5.8.3 🎉 Your GitReleaseManager bot 📦🚀 |
This just happend to me again.
It has been executed on a gitlab-runner. I'm on 5.12.0 |
@0000day try the latest beta |
Latest beta had too many changes for me. Investigated it on v5.12.0.
This fixed it for me, maybe it's a help for others. |
Describe the bug
Branch version solving does not works
Expected Behavior
Correct composition of current version
Actual Behavior
Steps to Reproduce
I used command line execution in my project directory:
I tried as well with:
Your Environment
project that runs .net core 3.1
Branch structure in my repository:
Rider:
The text was updated successfully, but these errors were encountered: