Skip to content
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

Custom dynverSeparator breaks versionSchemeEnforcerCheck #56

Open
ClintCombs opened this issue Dec 10, 2021 · 1 comment
Open

Custom dynverSeparator breaks versionSchemeEnforcerCheck #56

ClintCombs opened this issue Dec 10, 2021 · 1 comment

Comments

@ClintCombs
Copy link

ClintCombs commented Dec 10, 2021

Setting dynverSeparator as follows:

ThisBuild / dynverSeparator := "-"

breaks versionSchemeEnforcerCheck:

sbt:project-name> version
[info] 0.3.4-5-9317ba08-20211210-1014
sbt:project-name> versionSchemeEnforcerCheck
[error] stack trace is suppressed; run last versionSchemeEnforcerCheck for the full output
[error] (versionSchemeEnforcerCheck) Invalid versions for EarlySemVer. Previous must be < Next and each version must have exactly three components. Previous: 0.3.3, Next: 0.3.4.5.9317

This case is handled in sbt-version-policy with the versionPolicyIgnoredInternalDependencyVersions, e.g.:

ThisBuild / versionPolicyIgnoredInternalDependencyVersions := Some("^\\d+\\.\\d+\\.\\d+-\\d+".r)

See: https://github.com/scalacenter/sbt-version-policy#how-to-integrate-with-sbt-dynver

@ClintCombs
Copy link
Author

Adding a section in the README about sbt-dynver would be helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant