You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
5.2.4 is the latest workable version. From 5.3.0 to current release, the version calculated by gitversion can't get a newer value.
We know branch can't be configured as "Mainline", because:
private static void VerifyReadConfig(Config config)
{
// Verify no branches are set to mainline mode
if (config.Branches.Any(b => b.Value?.VersioningMode == VersioningMode.Mainline))
{
throw new ConfigurationException(@"Mainline mode only works at the repository level, a single branch cannot be put into mainline mode
This is because mainline mode treats your entire git repository as an event source with each merge into the 'mainline' incrementing the version.
If the docs do not help you decide on the mode open an issue to discuss what you are trying to do.");
}
}
Thought the document said By default, GitVersion is set up to do Continuous Delivery on all branches but develop, But when general mode is "Mainline", and mode of branch is null, mode of branch would be set to "Mainline"
We are using GitVersion.yml
5.2.4 is the latest workable version. From 5.3.0 to current release, the version calculated by gitversion can't get a newer value.
We know branch can't be configured as "Mainline", because:
Thought the document said
By default, GitVersion is set up to do Continuous Delivery on all branches but develop
,But when general mode is "Mainline", and mode of branch is null, mode of branch would be set to "Mainline"
Gitversion Code
I think the above code causes the issue.
The text was updated successfully, but these errors were encountered: