Fix VERSION

This commit is contained in:
Zhichang Yu 2024-12-06 22:51:31 +08:00
parent 8cdb805c0b
commit e69e6b2274
2 changed files with 2 additions and 2 deletions

View File

@ -120,7 +120,7 @@ RUN --mount=type=cache,id=ragflow_npm,target=/root/.npm,sharing=locked \
COPY .git /ragflow/.git
RUN version_info=$(git describe --tags --match=v* --dirty --always); \
RUN version_info=$(git describe --tags --match=v* --always); \
if [ "$LIGHTEN" == "1" ]; then \
version_info="$version_info slim"; \
else \

View File

@ -43,7 +43,7 @@ def get_closest_tag_and_count():
try:
# Get the current commit hash
version_info = (
subprocess.check_output(["git", "describe", "--tags", "--match=v*", "--dirty", "--always"])
subprocess.check_output(["git", "describe", "--tags", "--match=v*", "--always"])
.strip()
.decode("utf-8")
)