chocolatey / Chocolatey.Cake.Recipe

A set of convention based Cake scripts for building Chocolatey projects
Apache License 2.0
5 stars 9 forks source link

Building on a branch starting with a number can cause an error with GitVersion #162

Open corbob opened 3 weeks ago

corbob commented 3 weeks ago

Checklist

What You Are Seeing?

Trying to build Chocolatey/choco on a branch named 3465-msi causes an error with GitVersion: Index and length must refer to a location within the string. Parameter name: length image

Additionally when trying to build on a branch named gh-3465-msi causes the same error.

What is Expected?

Build should complete successfully.

How Did You Get This To Happen?

  1. Create a branch called 3465-msi and attempt to build.
  2. Now create a branch called gh-3465-msi and attempt to build it.
  3. Note they both fail with the same error.

System Details

Installed Packages

N/A

Output Log

See screenshot above.

Additional Context

No response