diff options
| author | Tobias Järvelöv <tobias.jarvelov@mullvad.net> | 2025-09-03 16:57:27 +0200 |
|---|---|---|
| committer | Tobias Järvelöv <tobias.jarvelov@mullvad.net> | 2025-09-11 14:55:41 +0200 |
| commit | e5db38ca79da3182843b9c49d73cc23d2313661c (patch) | |
| tree | 85b3f963ba3efd459559d91d362f5d1cdf7044bd | |
| parent | a3d5e4cc8d859ee96ecc836a04e26cd7c8559c07 (diff) | |
| download | mullvadvpn-e5db38ca79da3182843b9c49d73cc23d2313661c.tar.xz mullvadvpn-e5db38ca79da3182843b9c49d73cc23d2313661c.zip | |
Allow long filenames in git for the Windows Github runners
| -rw-r--r-- | .github/workflows/desktop-e2e.yml | 4 | ||||
| -rw-r--r-- | .github/workflows/downloader.yml | 5 | ||||
| -rw-r--r-- | .github/workflows/frontend.yml | 6 |
3 files changed, 15 insertions, 0 deletions
diff --git a/.github/workflows/desktop-e2e.yml b/.github/workflows/desktop-e2e.yml index 9b4bb92201..72f457243e 100644 --- a/.github/workflows/desktop-e2e.yml +++ b/.github/workflows/desktop-e2e.yml @@ -317,6 +317,10 @@ jobs: !startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main' runs-on: windows-latest steps: + # By default, the longest path a filename can have in git on Windows is 260 character. + - name: Set git config for long paths + run: | + git config --system core.longpaths true - name: Checkout repository uses: actions/checkout@v4 - name: Checkout submodules diff --git a/.github/workflows/downloader.yml b/.github/workflows/downloader.yml index 841c1f5d6b..631a1bceeb 100644 --- a/.github/workflows/downloader.yml +++ b/.github/workflows/downloader.yml @@ -40,6 +40,11 @@ jobs: # You should think twice before increasing this limit. MAX_BINARY_SIZE: 2621440 steps: + # By default, the longest path a filename can have in git on Windows is 260 character. + - name: Set git config for long paths + run: | + git config --system core.longpaths true + - name: Checkout repository uses: actions/checkout@v4 diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index 25fb01f3dd..a1c648d358 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -18,6 +18,12 @@ jobs: runs-on: ${{ matrix.os }} steps: + # By default, the longest path a filename can have in git on Windows is 260 character. + - name: Set git config for long paths + if: runner.os == 'Windows' + run: | + git config --system core.longpaths true + - name: Checkout repository uses: actions/checkout@v4 |
