Skip to content

Commit

Permalink
Merge pull request #3105 from F3n67u/feat/increase-maxBuffer
Browse files Browse the repository at this point in the history
[rush-lib] increase maxBuffer to 10mb when `executeCommand`
  • Loading branch information
iclanton committed Jan 5, 2022
2 parents 4ba78ae + 429ddd6 commit b79967b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/rush-lib/src/utilities/Utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,8 @@ export class Utilities {
stdio: stdio,
env: keepEnvironment
? environment
: Utilities._createEnvironmentForRushCommand({ initialEnvironment: environment })
: Utilities._createEnvironmentForRushCommand({ initialEnvironment: environment }),
maxBuffer: 10 * 1024 * 1024 // Set default max buffer size to 10MB
};

// This is needed since we specify shell=true below.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@microsoft/rush",
"comment": "Fix an issue that occurs when running a command with a selection argument with a Git ref (like `--from git:main`) in a repo with a pnpm lockfile larger than 1MB.",
"type": "none"
}
],
"packageName": "@microsoft/rush"
}

0 comments on commit b79967b

Please sign in to comment.