Skip to content

Commit b79967b

Browse files
authored
Merge pull request #3105 from F3n67u/feat/increase-maxBuffer
[rush-lib] increase maxBuffer to 10mb when `executeCommand`
2 parents 4ba78ae + 429ddd6 commit b79967b

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

apps/rush-lib/src/utilities/Utilities.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,8 @@ export class Utilities {
775775
stdio: stdio,
776776
env: keepEnvironment
777777
? environment
778-
: Utilities._createEnvironmentForRushCommand({ initialEnvironment: environment })
778+
: Utilities._createEnvironmentForRushCommand({ initialEnvironment: environment }),
779+
maxBuffer: 10 * 1024 * 1024 // Set default max buffer size to 10MB
779780
};
780781

781782
// This is needed since we specify shell=true below.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@microsoft/rush",
5+
"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.",
6+
"type": "none"
7+
}
8+
],
9+
"packageName": "@microsoft/rush"
10+
}

0 commit comments

Comments
 (0)