mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Fix VERSION
This commit is contained in:
@ -120,7 +120,7 @@ RUN --mount=type=cache,id=ragflow_npm,target=/root/.npm,sharing=locked \
|
|||||||
|
|
||||||
COPY .git /ragflow/.git
|
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 \
|
if [ "$LIGHTEN" == "1" ]; then \
|
||||||
version_info="$version_info slim"; \
|
version_info="$version_info slim"; \
|
||||||
else \
|
else \
|
||||||
|
|||||||
@ -43,7 +43,7 @@ def get_closest_tag_and_count():
|
|||||||
try:
|
try:
|
||||||
# Get the current commit hash
|
# Get the current commit hash
|
||||||
version_info = (
|
version_info = (
|
||||||
subprocess.check_output(["git", "describe", "--tags", "--match=v*", "--dirty", "--always"])
|
subprocess.check_output(["git", "describe", "--tags", "--match=v*", "--always"])
|
||||||
.strip()
|
.strip()
|
||||||
.decode("utf-8")
|
.decode("utf-8")
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user