Skip to content

Commit

Permalink
cmake: exclude operator tags when determining version
Browse files Browse the repository at this point in the history
We recently added a new `operator/*` tags in git, and we shouldn't be
picking that up to determine Redpanda version.

Signed-off-by: Tyler Rockwood <[email protected]>
  • Loading branch information
rockwotj committed Nov 2, 2023
1 parent 13c38c6 commit 58a66a2
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 58a66a2

Please sign in to comment.