Open mu88 opened 11 months ago
Hello, @mu88! Yeah, that's a reasonable feature that most versioning libraries have. We'll look into getting that included.
that would be awesome!
Hi @cabauman
I have looked around a bit in the code and two ideas came to my mind:
public bool OmitTagPrexifx { get; set }
in VersionizeOptions
(which just signals to omit the version prefix v
and is false
by default to not break with previous behavior) and check for this property in WorkingCopy.Versionize
. This is (probably/hopefully 🤞🏻) easy to implement, but further complicates the logic of WorkingCopy.Versionize
.public string VersionString { get; set }
in VersionizeOptions
and extension method public static string ToVersionizeString(this NuGet.Versioning.SemanticVersion version)
which consumes VersionizeOptions.VersionString
.IFormatProvider
and pass it here.Thanks for the ideas. I'm about to head out of country for a couple weeks, so it'll take some time to get around to this, but we'll get there :)
Hi @cabauman - I hope this reaches you well 🙂 is there any news about this issue?
Hello! Oops, sorry. Thanks for reminding me.
This sounds interesting! Is there a feature road map at all for enhancements to this package?
I'll come back to this issue after v2 is released (soon).
Hi 👋🏻
First of all, thank you for your amazing project! I added it yesterday to a couple of my projects and it works very well 👏🏻
One thing that I stumbled upon was using the Git tag created by versionize as Docker image tag and the tag's
v
prefix. For example, let's assume callingdotnet versionize
creates a new Git tagv3.0.0
. Now when creating a Docker image for this release via GitHub Actions, I have to shorten the Git tag like this so that my final image is taggedmu88/raspifancontroller:3.0.0
instead ofmu88/raspifancontroller:v3.0.0
(which would happen when using${{ github.ref_name }}
):Since I had to insert this snippet into each of my Release pipeline, it would be cool if I could instruct versionize to create a Git tag without the
v
prefix (i. e.3.0.0
instead ofv3.0.0
).