Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[rush] rush build --to git:origin/master crash with ENOBUFS #3106

Closed
lianghx-319 opened this issue Dec 21, 2021 · 0 comments
Closed

[rush] rush build --to git:origin/master crash with ENOBUFS #3106

lianghx-319 opened this issue Dec 21, 2021 · 0 comments

Comments

@lianghx-319
Copy link

Summary

rush build changed project diff between branch crash with ENOBUFS

Repro steps

  1. With a large pnpm.lock file in monorepo
  2. updata deps that make lock file changed
  3. git commit changes
  4. execute rush build --to git:origin/master

Expected result: Just build success

Actual result: Error: spawnSync /bin/sh ENOBUFS

at Object.spawnSync (internal/child_process.js:1077:20)
at Object.spawnSync (child_process.js:776:24)
at Function._executeCommandInternal (/Users/XXX/.pnpm/global-modules/5/node_modules/.pnpm/@[email protected]/node_modules/@microsoft/rush-lib/lib/utilities/Utilities.js:546:36)
at Function.executeCommandAndCaptureOutput (/Users/XXX/.pnpm/global-modules/5/node_modules/.pnpm/@[email protected]/node_modules/@microsoft/rush-lib/lib/utilities/Utilities.js:199:34)
at Git._executeGitCommandAndCaptureOutput (/Users/XXX/.pnpm/global-modules/5/node_modules/.pnpm/@[email protected]/node_modules/@microsoft/rush-lib/lib/logic/Git.js:465:42)
at Git.getBlobContent (/Users/XXX/.pnpm/global-modules/5/node_modules/.pnpm/@[email protected]/node_modules/@microsoft/rush-lib/lib/logic/Git.js:219:29)
at ProjectChangeAnalyzer.getChangedProjectsAsync (/Users/XXX/.pnpm/global-modules/5/node_modules/.pnpm/@[email protected]/node_modules/@microsoft/rush-lib/lib/logic/ProjectChangeAnalyzer.js:169:57)
at GitChangedProjectSelectorParser.evaluateSelectorAsync (/Users/XXX/.pnpm/global-modules/5/node_modules/.pnpm/@[email protected]/node_modules/@microsoft/rush-lib/lib/logic/selectors/GitChangedProjectSelectorParser.js:13:44)
at SelectionParameterSet._evaluateProjectParameterAsync (/Users/XXX/.pnpm/global-modules/5/node_modules/.pnpm/@[email protected]/node_modules/@microsoft/rush-lib/lib/cli/SelectionParameterSet.js:276:49)
at /Users/XXX/.pnpm/global-modules/5/node_modules/.pnpm/@[email protected]/node_modules/@microsoft/rush-lib/lib/cli/SelectionParameterSet.js:166:25

Details

Standard questions

Please answer these questions to help us investigate your issue more quickly:

Question Answer
@microsoft/rush globally installed version? 5.58.0
rushVersion from rush.json? 5.58.0
useWorkspaces from rush.json? true
Operating system? Mac and Linux
Would you consider contributing a PR? Maybe yes
Node.js version (node -v)? v14.18.1
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

No branches or pull requests

1 participant