]> git.ipfire.org Git - thirdparty/ccache.git/commit
fix: Find Ccache version from lightweight Git tag
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 17 Apr 2023 16:08:24 +0000 (18:08 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 17 Apr 2023 16:14:56 +0000 (18:14 +0200)
commit65886dc168240ddbc60920c812458a70130191c3
tree0c675da1a89cddceea5db240e0e11161dd108861
parente07a0825b31c15cd57d5808e92118d758c921cba
fix: Find Ccache version from lightweight Git tag

Ccache calculates its version from a matching Git tag by using the "git
describe" command, which only considers annotated tags. All ccache tags
are annotated. However, when running a GitHub action job for a tag the
local Git repository is (at least by default) a shallow clone with the
tag being converted to a lightweight tag. This makes "git describe" not
see the tag.

Fix this by adding --tags to "git describe" to make it consider
lightweight tags as well.

Fixes #1270.
cmake/CcacheVersion.cmake