Skip to content

Commit 4a317d3

Browse files
Enable 8.3 paths in unit tests
1 parent ffc7135 commit 4a317d3

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,19 @@ jobs:
144144
matrix:
145145
os: [ubuntu-latest, windows-latest]
146146
steps:
147+
# Enable 8.3 filename creation. This is not required to run the extension but it is required for the unit tests to pass.
148+
# This feature is currently enabled by default in Windows 11 for the C: drive and therefore we must maintain support for it.
149+
# This setting needs to be enabled before files are created, i.e. before we checkout the repository.
150+
- name: Enable 8.3 filenames
151+
shell: pwsh
152+
if: ${{ matrix.os == 'windows-latest' }}
153+
run: |
154+
$shortNameEnableProcess = Start-Process -FilePath fsutil.exe -ArgumentList ('8dot3name', 'set', '0') -Wait -PassThru
155+
$shortNameEnableExitCode = $shortNameEnableProcess.ExitCode
156+
if ($shortNameEnableExitCode -ne 0) {
157+
exit $shortNameEnableExitCode
158+
}
159+
147160
- name: Checkout
148161
uses: actions/checkout@v4
149162
with:

0 commit comments

Comments
 (0)