Skip to content

Conversation

@aman19K
Copy link
Contributor

@aman19K aman19K commented Sep 23, 2025

Root Cause Analysis
The setup-repo scripts run:
npm i → pnpm package-lock-only → pnpm clean → pnpm install → pnpm prepack
During prepack, each package runs oclif manifest which accesses the config
Multiple processes trying to serialize/deserialize config simultaneously = corruption

This is a classic race condition issue in a monorepo environment where multiple packages are trying to access and modify the same configuration file simultaneously during the prepack phase.

Solution

In-Memory Config During Prepack:
No Temporary Files: During oclif manifest generation, the config will use pure in-memory storage (Map<string, any>).
No Cleanup Required: Since no files are created, there's no need for any cleanup.
Automatic Detection: Prepack mode is automatically detected via environment variables and process arguments.

@aman19K aman19K marked this pull request as ready for review September 24, 2025 09:54
@aman19K aman19K requested a review from a team as a code owner September 24, 2025 09:54
@aman19K aman19K merged commit 3342a08 into development Sep 24, 2025
10 checks passed
@aman19K aman19K deleted the enh/DX-3560 branch September 24, 2025 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants