version string logic updated to use v0.0.0-dev when no string set#398
version string logic updated to use v0.0.0-dev when no string set#398LandonTClipp merged 1 commit intovektra:masterfrom
Conversation
|
This will probably work. I'll test tonight and see if it fixes it. I'm tempted to move towards hard coding the semver variable to the actual version, then the build pipeline would key off that to create the git tag. But, if this works we can go with it. |
|
Thanks so much for taking a look @LandonTClipp ! Let me know if there's anything I can do to support. Both solutions seem pretty good. |
|
I actually think I'm going to go with hard-coding the version string and having that be the source of truth, instead of relying on two disjointed methods (i.e. variable injection for builds, and ReadDebugInfo for modules). I've been getting pretty frustrated with this issue and it would solve it once and for all. The trick is getting the build pipelines to correctly key off of it and tag as appropriate. I appreciate the PR and the engagement, but will close this for now. |
|
Actually, I changed my mind. I'll give this a shot. Might be easier. |
This change is aimed at addressing issues where mockery will use the incorrect version if
SemVervariable is not set during build using the-ldflagoption.When running with ld flag set:
When running as module:
When running otherwise
closes: #397