-
Notifications
You must be signed in to change notification settings - Fork 653
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] GitVersion is crashing when trying to update AssemblyInfo.cs files. #2605
Comments
Here are the stdout and stderr streams from |
Are you able to reproduce this error in a public repository or |
I am not. It is UPMC's internal Azure DevOps hosted Git repo. I haven't seen it in my own repos on GitHub. |
I came across this issue as well, but on a different set of steps. I was experimenting with ways to limit git history to a particular folder by running git branch-filter command. Running GitVersion on the filtered repository worked with 5.5.0, but failed with 5.6.6, at the same place @robbrattonUPMC reported. It is possible for a branch to have a different history than that of its parent branch, orphan branches for example. Here is a simple powershell script that reproduces the problem.
I'm happy to fix and write tests for this issue, if this is identified as a bug, or as an improvement. |
@SanjayGuntur, pull requests with tests and fixes are welcome and greatly appreciated! 🙏🏼 |
I was running into the same issue and discovered that it happened if any of the branches in the repository had no commits. In my case it was the Master branch, which was not initialized with a ReadMe.md. |
🎉 This issue has been resolved in version 5.10.0 🎉 Your GitReleaseManager bot 📦🚀 |
Describe the bug
Command used in Windows 10 command prompt or PowerShell as well as Azure DevOps build pipeline:
gitversion /updateassemblyinfo
GitVersion is crashing when trying to update AssemblyInfo.cs files.
Expected Behavior
I expected the version in the GitVersion.yml file to be applied to the AssemblyInfo.cs files since it is higher than the latest tag.
Actual Behavior
Possible Fix
Steps to Reproduce
I am not able to share the source code from our internal Git source repository because of intellectual property.
Context
We use GitVersion as part of our Azure DevOps build pipelines to assign the assembly version information at build time.
Your Environment
Azure DevOps (hosted)
Classic Build Pipeline
The text was updated successfully, but these errors were encountered: