When version tag is set on last commit it works ok. But when version tag is set on some of parent commit the resulting version is 0.0.0-alpha.0
Minver not working on Azure devops - sets the default version 0.0.0-alpha.0
285 views Asked by raV720 At
1
The problem is with the way azure devops does checkout. It fetches only last commit (depth=1). Log from devops checkout:
and minver cannot infer version from only last commit. The fix is to set appropriate depth in azure-pipelines.yml:
Now log looks good:
and minver does its job.