balena-io / balena-cli

The official balena CLI tool.
Apache License 2.0
453 stars 139 forks source link

Can't specify pre-release versions in `balena.yml` #2337

Closed jrc closed 2 years ago

jrc commented 3 years ago

Expected Behavior

When specifying a version in balena.yml, I expect to be able to provide pre-release versions e.g. "1.0.0-alpha.1". This is supported in the SemVer specification, item 9.

Actual Behavior

Upon running balena push, the current CLI outputs a warning message "[Warning] The balena.yml version field must be a 3 digit semver (eg: 1.0.0). Please update your balena.yml or use the Dashboard to update the release version". The version shown in the dashboard becomes "0.0.0+rev67"

Specifications

Additional References

pdcastro commented 3 years ago

Thanks for this feedback 👍   It is something on our radar, and needs to be implemented in the API data model first: balena-io/open-balena-api/issues/749 Should support all valid semver values in the release.semver field