Skip to content

Commit

Permalink
Merge pull request #14611 from rockwotj/version
Browse files Browse the repository at this point in the history
cmake: exclude operator tags when determining version
  • Loading branch information
piyushredpanda authored Nov 2, 2023
2 parents 13c38c6 + 58a66a2 commit ae2152c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/v/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ option(ENABLE_GIT_HASH "Build with Git hash in metadata" OFF)
if(${ENABLE_GIT_VERSION})
include(GetGitRevisionDescription)
if(${ENABLE_GIT_HASH})
git_describe(GIT_VER --always)
git_describe(GIT_VER --always --exclude=operator/*)
else()
# If displaying a version, make sure it also doesn't display a hash.
git_describe(GIT_VER --always --abbrev=0)
git_describe(GIT_VER --always --abbrev=0 --exclude=operator/*)
endif()
else()
if(${ENABLE_GIT_HASH})
Expand Down

0 comments on commit ae2152c

Please sign in to comment.