Does daml.yaml support full SemVer versions?
App Development3 posts222 views8 likesLast activity Jul 2021
AL
Alex_MatsonOP
Jul 2021I noticed that daml.yaml doesn’t seem to fully support the entire semantic versioning grammar. For example:
daml new test --template create-daml-app- Change the version in
daml.yamlto0.1.0-rc.1(still a valid semver tag) daml build
Results in the warning
WARNING: Package versions should have the format ^(0|[1-9][0-9]*)(\.(0|[1-9][0-9]*)(\.(0|[1-9][0-9]*))?)?$.
You may be able to compile packages with different formats, but you will not be able to
use them as dependencies in other projects. Unsupported package names or versions may
start causing compilation errors without warning.
Is the regex for package versions constrained like this by design?
CO
cocreature
Jul 2021Unfortunately we do not support full semver at this point. This is a limitation we inherit from Haskell so it’s less “by design” and more because our tooling breaks if we allow for something else. I tried fixing that a while back but unfortunately ran into some issues that made it quite challenging so I had to abandon it for the time being. I’d still like to revisit this at some point but no promises on timeline.
AL
Alex_Matson
Jul 2021Thanks!