diff --git a/.chronus/changes/copilot-fix-3195-2025-8-9-14-19-15.md b/.chronus/changes/copilot-fix-3195-2025-8-9-14-19-15.md new file mode 100644 index 00000000000..21925d4d02b --- /dev/null +++ b/.chronus/changes/copilot-fix-3195-2025-8-9-14-19-15.md @@ -0,0 +1,7 @@ +--- +changeKind: internal +packages: + - "@azure-tools/typespec-python" +--- + +upgrade pnpm version to 10.11.0 \ No newline at end of file diff --git a/README.md b/README.md index cc8c30d34fe..8ae03b7c7c6 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ ## Requirements - Node 20+ -- pnpm 9+ +- pnpm 10+ - Python 3.9+ ## Develop diff --git a/eng/pipelines/ci-template.yml b/eng/pipelines/ci-template.yml index cc565f49ed1..30204f0cbed 100644 --- a/eng/pipelines/ci-template.yml +++ b/eng/pipelines/ci-template.yml @@ -26,8 +26,8 @@ steps: inputs: versionSpec: $(PythonVersion) - - script: npm install -g pnpm@9.5.0 - displayName: Install pnpm 9.5.0 + - script: npm install -g pnpm@10.11.0 + displayName: Install pnpm 10.11.0 - script: npm install -g autorest displayName: Install autorest diff --git a/eng/pipelines/publish-release.yml b/eng/pipelines/publish-release.yml index f3f60666921..faa58330617 100644 --- a/eng/pipelines/publish-release.yml +++ b/eng/pipelines/publish-release.yml @@ -28,8 +28,8 @@ extends: inputs: versionSpec: 3.10 - - script: npm install -g pnpm@9.5.0 - displayName: Install PNPM 9.5.0 + - script: npm install -g pnpm@10.11.0 + displayName: Install PNPM 10.11.0 - script: pnpm install displayName: Install dependencies diff --git a/eng/pipelines/sdk_regenerate.yaml b/eng/pipelines/sdk_regenerate.yaml index 8233ce5ea52..d78e3c08f9c 100644 --- a/eng/pipelines/sdk_regenerate.yaml +++ b/eng/pipelines/sdk_regenerate.yaml @@ -44,8 +44,8 @@ jobs: inputs: versionSpec: '20.x' - - script: npm install -g pnpm@9.5.0 - displayName: Install pnpm 9.5.0 + - script: npm install -g pnpm@10.11.0 + displayName: Install pnpm 10.11.0 - script: pnpm install displayName: pnpm install diff --git a/eng/scripts/initialize.py b/eng/scripts/initialize.py index 2a0713d8aaf..2834a594dbb 100644 --- a/eng/scripts/initialize.py +++ b/eng/scripts/initialize.py @@ -24,7 +24,7 @@ def copy(src: Path, dest: Path) -> None: def main(update_to_latest_typespec: bool, build_artifacts_path: Path) -> None: # Install global dependencies - call("npm install -g pnpm@9.5.0") + call("npm install -g pnpm@10.11.0") call("npm install -g autorest") call("npm install -g @typespec/compiler") diff --git a/package.json b/package.json index 817e4ae213f..72d95127e9c 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "workspaces": [ "packages/*" ], - "packageManager": "pnpm@9.5.0", + "packageManager": "pnpm@10.11.0", "scripts": { "preinstall": "npx only-allow pnpm", "watch": "tsc --build ./tsconfig.ws.json --watch", diff --git a/packages/typespec-python/scripts/eng/regenerate.ts b/packages/typespec-python/scripts/eng/regenerate.ts index 2f52f3a1b25..5ecbf2bbcdc 100644 --- a/packages/typespec-python/scripts/eng/regenerate.ts +++ b/packages/typespec-python/scripts/eng/regenerate.ts @@ -494,6 +494,12 @@ async function regenerate(flags: RegenerateFlagsInput): Promise { return () => executeCommand(tspCommand); }); + // After upgrade to pnpm 10.x, the @typespec/http-client-python can't be installed completely with venv folder created. + // But the emitter will try to recreate venv again in runtime, so we shall not run in parallel until venv is + // installed correctly. This is just workaround solution so when we find the root cause, we can remove this line. + // NOTE: if we use `npm install`, emitter can be installed completely so maybe it is pnpm's bug. + // await tasks[0](); + // Run tasks with a concurrency limit await runTaskPool(tasks, 30); } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8c6b9200ffd..4985c1e10e9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -10065,4 +10065,6 @@ snapshots: yocto-queue@1.2.0: {} + yoctocolors-cjs@2.1.2: {} + zod@3.25.7: {}