chdb-io / chdb

chDB is an in-process OLAP SQL Engine 🚀 powered by ClickHouse
https://clickhouse.com/chdb
Apache License 2.0
2.13k stars 75 forks source link

feat: get latest tag by git rev-list #142

Closed nmreadelf closed 11 months ago

nmreadelf commented 11 months ago

When I build chDB on the main branch, the git describe --tags --abbrev=0 --match 'v*' command fails with the following error:

git describe --tags --abbrev=0 --match 'v*'
fatal: No tags can describe 'e899c3b12c0831ecdf0efbef5571242ccece05cc'.
Try --always, or create some tags.

To ensure greater stability, I recommend using the git describe --tags $(git rev-list --tags --max-count=1) command to retrieve the latest tag.