Skip to content

Commit fa89bb1

Browse files
committed
Move longpaths git config before checkout steps on Windows
The contrib repo checkout was failing on Windows with "Filename too long" because the longpaths config ran after the checkout. Move it to be the first step so both checkouts benefit from it. Assisted-by: Claude Sonnet 4.6
1 parent 74ace27 commit fa89bb1

3 files changed

Lines changed: 317 additions & 473 deletions

File tree

.github/workflows/templates/test.yml.j2

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ jobs:
4343
runs-on: {{ job_data.os }}
4444
timeout-minutes: 30
4545
steps:
46+
{%- if job_data.os == "windows-latest" %}
47+
- name: Configure git to support long filenames
48+
run: git config --system core.longpaths true
49+
50+
{%- endif %}
4651
- name: Checkout repo @ SHA - ${% raw %}{{ github.sha }}{% endraw %}
4752
uses: actions/checkout@v4
4853
{%- if "getting-started" in job_data.tox_env %}
@@ -62,11 +67,6 @@ jobs:
6267

6368
- name: Install tox
6469
run: pip install tox-uv
65-
{%- if job_data.os == "windows-latest" %}
66-
67-
- name: Configure git to support long filenames
68-
run: git config --system core.longpaths true
69-
{%- endif %}
7070

7171
- name: Run tests
7272
run: tox -e {{ job_data.tox_env }} -- -ra

0 commit comments

Comments
 (0)