Skip to content

Commit 678ab5f

Browse files
msyycCopilot
andcommitted
Enable core.longpaths on baseline clone to fix Windows MAX_PATH error
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent a66b88f commit 678ab5f

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.chronus/changes/fix-regen-baseline-path-2026-5-20.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ packages:
44
- "@typespec/http-client-python"
55
---
66

7-
Update the baseline source for regeneration to use the `typespec-python-generated-tests` branch and `eng/tools/azure-sdk-tools/emitter/generated` path in `azure-sdk-for-python`.
7+
Update the baseline source for regeneration to use the `typespec-python-generated-tests` branch and `eng/tools/azure-sdk-tools/emitter/generated` path in `azure-sdk-for-python`, and enable `core.longpaths` on the temporary baseline clone to avoid Windows `MAX_PATH` errors during checkout.

packages/http-client-python/eng/scripts/ci/regenerate-common.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,7 @@ export async function prepareBaselineOfGeneratedCode(generatedFolder: string): P
708708
execSync(cmd, { cwd: tempDir, stdio: ["ignore", "ignore", "inherit"] });
709709

710710
run(`git init`);
711+
run(`git config core.longpaths true`);
711712
run(`git remote add origin ${repoUrl}`);
712713
run(`git config core.sparseCheckout true`);
713714
run(`git sparse-checkout init --cone`);

0 commit comments

Comments
 (0)