diff --git a/CMakeLists.txt b/CMakeLists.txt index 348d7aa3d1e..406306a1b26 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -147,7 +147,7 @@ list(APPEND EXTERNAL_LIBS Threads::Threads) # Add git sha to version.h find_package(Git REQUIRED) -execute_process(COMMAND sh -c "cat VERSION" +execute_process(COMMAND sh -c "cat src/VERSION.txt" WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} OUTPUT_VARIABLE PROJECT_VERSION) execute_process(COMMAND git rev-parse --short HEAD WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} OUTPUT_VARIABLE GIT_SHA) diff --git a/VERSION b/src/VERSION.txt similarity index 100% rename from VERSION rename to src/VERSION.txt diff --git a/x.py b/x.py index 5aecb8541ea..09a69d4cc17 100755 --- a/x.py +++ b/x.py @@ -212,7 +212,7 @@ def write_version(release_version: str) -> str: if SEMVER_REGEX.match(version) is None: raise RuntimeError(f"Kvrocks version should follow semver spec, got: {version}") - with open('VERSION', 'w+') as f: + with open('src/VERSION.txt', 'w+') as f: f.write(version) return version