-
Notifications
You must be signed in to change notification settings - Fork 47
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
the + in version is not compatible with docker tags #5
Comments
Using But I think I can structure the data that forms the version such that you can define the final version string any way you want. |
I use
Note that There is probably a similar way to do this with |
Hi all, The solution, as documented in the top half of https://github.com/dwijnand/sbt-dynver#custom-version-string is to post-process, like so: version in ThisBuild ~= (_.replace('+', '-'))
dynver in ThisBuild ~= (_.replace('+', '-')) See the rest of https://github.com/dwijnand/sbt-dynver#custom-version-string for guidance if you want/need a more sophisticated solution. |
Fixes sbt#5 Added a `dynverSeparator` setting so that it can be overridden for use with docker images in an easier to understand manner than is currently possible.
When combining sbt-dynver with sbt-native-packager it creates versions that are not compatible with docker tag names:
"A tag name may contain lowercase and uppercase characters, digits, underscores, periods and dashes. A tag name may not start with a period or a dash and may contain a maximum of 128 characters."
this is the error I am getting:
The text was updated successfully, but these errors were encountered: