diff --git a/.changeset/curly-paths-wash.md b/.changeset/curly-paths-wash.md new file mode 100644 index 0000000000..b85813751a --- /dev/null +++ b/.changeset/curly-paths-wash.md @@ -0,0 +1,6 @@ +--- +"@pnpm/tools.plugin-commands-self-updater": patch +"pnpm": patch +--- + +pnpm version management should work, when `dangerouslyAllowAllBuilds` is set to `true` [#9472](https://github.com/pnpm/pnpm/issues/9472). diff --git a/tools/plugin-commands-self-updater/src/installPnpmToTools.ts b/tools/plugin-commands-self-updater/src/installPnpmToTools.ts index 47a2dff9e0..219f0721e8 100644 --- a/tools/plugin-commands-self-updater/src/installPnpmToTools.ts +++ b/tools/plugin-commands-self-updater/src/installPnpmToTools.ts @@ -44,6 +44,7 @@ export async function installPnpmToTools (pnpmVersion: string, opts: SelfUpdateC `${currentPkgName}@${pnpmVersion}`, '--loglevel=error', '--allow-build=@pnpm/exe', + '--no-dangerously-allow-all-builds', // We want to avoid symlinks because of the rename step, // which breaks the junctions on Windows. '--config.node-linker=hoisted',