Fix VERSION
Browse files- Dockerfile +1 -1
- api/versions.py +1 -1
Dockerfile
CHANGED
|
@@ -120,7 +120,7 @@ RUN --mount=type=cache,id=ragflow_npm,target=/root/.npm,sharing=locked \
|
|
| 120 |
|
| 121 |
COPY .git /ragflow/.git
|
| 122 |
|
| 123 |
-
RUN version_info=$(git describe --tags --match=v* --
|
| 124 |
if [ "$LIGHTEN" == "1" ]; then \
|
| 125 |
version_info="$version_info slim"; \
|
| 126 |
else \
|
|
|
|
| 120 |
|
| 121 |
COPY .git /ragflow/.git
|
| 122 |
|
| 123 |
+
RUN version_info=$(git describe --tags --match=v* --always); \
|
| 124 |
if [ "$LIGHTEN" == "1" ]; then \
|
| 125 |
version_info="$version_info slim"; \
|
| 126 |
else \
|
api/versions.py
CHANGED
|
@@ -43,7 +43,7 @@ def get_closest_tag_and_count():
|
|
| 43 |
try:
|
| 44 |
# Get the current commit hash
|
| 45 |
version_info = (
|
| 46 |
-
subprocess.check_output(["git", "describe", "--tags", "--match=v*", "--
|
| 47 |
.strip()
|
| 48 |
.decode("utf-8")
|
| 49 |
)
|
|
|
|
| 43 |
try:
|
| 44 |
# Get the current commit hash
|
| 45 |
version_info = (
|
| 46 |
+
subprocess.check_output(["git", "describe", "--tags", "--match=v*", "--always"])
|
| 47 |
.strip()
|
| 48 |
.decode("utf-8")
|
| 49 |
)
|