realm-dart icon indicating copy to clipboard operation
realm-dart copied to clipboard

Calculate core version with 'git describe' and update automatically in changelog as well

Open nielsenko opened this issue 2 years ago • 0 comments

This PR updates the way we calculate the core version to allow us to use unofficial releases, and still report a unique tag, instead of just tagging with the version number of the lates official release.

It just uses git describe instead of parsing the dependencies.list file.

git describe --abbrev=5 do the right thing on pure tagged commits as well, fx.

  • a5e87a39c (tag: v13.26.0) core v13.26.0

produces:

realm-core (a5e87a3) [$] via △ v3.28.2 via  v14.21.3 via 🐦 v5.8.1
❯ git describe --abbrev=5
v13.26.0

nielsenko avatar Feb 02 '24 14:02 nielsenko