Skip to content

Commit ac4f2ca

Browse files
committed
Backport PR #2263: fix(ci): fetch full git history in QA workflow so server reports real version (#2263)
The Dockerfile bakes .git into the image for hatch-vcs version detection, but the workflow's shallow, tag-less checkout meant the built server always reported version 0.1.dev1+<hash>, which failed flexmeasures-client's minimum-server-version check. Matches the fetch-depth: 0 already used in docker-publish.yml for the same reason. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qprz6PKnXkVE1TJ8d7PYe9 (cherry picked from commit 0e48110)
1 parent 7c0934d commit ac4f2ca

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/docker-qa.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ jobs:
3737
steps:
3838
- name: Checkout flexmeasures
3939
uses: actions/checkout@v4
40+
with:
41+
fetch-depth: 0 # full history + tags, required for hatch-vcs to resolve the version
4042

4143
- name: Checkout flexmeasures-client
4244
uses: actions/checkout@v4

0 commit comments

Comments
 (0)