trabucayre / openFPGALoader

Universal utility for programming FPGA
https://trabucayre.github.io/openFPGALoader/
Apache License 2.0
1.22k stars 263 forks source link

`git describe HEAD` gives misleading version information #442

Closed whitequark closed 8 months ago

whitequark commented 8 months ago
$ git tag
nightly
v0.1
v0.10.0
v0.11.0
v0.12.0
v0.2
v0.2.1
v0.2.5
v0.2.6
v0.3.0
v0.3.1
v0.4.0
v0.5.0
v0.6.0
v0.6.1
v0.7.0
v0.8.0
v0.9.0
v0.9.1
$ git describe HEAD
v0.3.1-951-ga1fd711

Do you have any idea why this is happening? This is breaking YoWASP's script that adds version info to the packages.

whitequark commented 8 months ago

It looks like there's something different about the v0.3.1 tag:

Tag: v0.3.1
object b2d2fa0127986cf6c0ee8d6cbc482c247cb79f4c
type commit
tag v0.3.1
tagger Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com> 1624712773 +0200

v0.3.1

and the v0.4.0 tag:

Tag: v0.4.0
tree e493d73ae3f6e4b925505f25e402d57c5f149d38
parent 8f95303daf9f5acb71a7038dbbb92f7d75bada93
author Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com> 1624713862 +0200
committer Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com> 1624713862 +0200

prepare release v0.4.0
whitequark commented 8 months ago

Oh, I think I got confused by "annotated tags" existing in git as separate entities from "lightweight tags". Looks like I need git describe --tags HEAD. Sorry for the noise!