-
Notifications
You must be signed in to change notification settings - Fork 296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
~ in version string breaks git caching #283
Comments
@jessereynolds I would much prefer a Pull Request that removes all invalid characters, rather than just |
Alternatively, we could generate a SHA for the tag instead. So, build it the same, but then SHA that value and use it for the tag. |
In either case, this will invalidate all existing git caches. That's fine, but something we will need to make note of in the release notes. |
The downside of putting the digest of the version into the tag is that human debugging of the cache becomes much harder. If we can convince ourselves that there is a reasonably small set of illegal characters, it might be worth going that route. For my use, since I don't make funny version numbers, going to SHA for version in tag is a net loss. |
+1 |
Great! I'll give that a shot. |
Hmmm, it seems I must have been running an older version of omnibus when I encountered the above error. With current master I cannot reproduce the error. The reason is that the tag is now generated just from software.name and the version string doesn't come into it at all. |
If you have a tilde character (~) in the package version string, the package builds fine but omnibus blows up when trying to cache the build in git, because ~ is not allowed in a git tag.
We are wanting to use tilde specifically in release candidate versions so that they sort earlier than the final release. Eg in Debian packages '1.0.0~rc3' sorts earlier than '1.0.0', whereas '1.0.0rc3' sorts later than '1.0.0'. If you have a release candidate version of 1.0.0 installed, you want to be able to install the 1.0.0 final when it's available. See the debian policy manual.
Would a PR be accepted that removes any ~ chars from candidate tag names before creating and using in git? (Or that replaces them with some other character?)
more output:
The text was updated successfully, but these errors were encountered: