From 33e7365a88931444a7f4bb8f38124cec5f32f09d Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Sat, 25 Apr 2026 17:31:36 +1000 Subject: [PATCH] fix: set SETUPTOOLS_SCM_PRETEND_VERSION in Dockerfile for hatch-vcs --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d24cf6f..f259f52 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,7 +33,9 @@ COPY --chown=appuser:appuser pyproject.toml uv.lock README.md ./ # Switch to appuser and install Python dependencies USER appuser ARG VERSION=dev -RUN HATCH_VCS_PRETEND_VERSION=${VERSION} uv sync --frozen +ENV HATCH_VCS_PRETEND_VERSION=${VERSION} \ + SETUPTOOLS_SCM_PRETEND_VERSION=${VERSION} +RUN uv sync --frozen # Copy application source COPY --chown=appuser:appuser src/ ./src/