Skip to content

Commit

Permalink
fix: cargo metadata with large project (#1117)
Browse files Browse the repository at this point in the history
Set `maxBuffer` to 10mb, cargo metadata may output
data more than 1mb(the nodejs default value).

Refs:
- #1116
  • Loading branch information
killagu authored and Brooooooklyn committed Apr 1, 2022
1 parent dc87c46 commit 6bef28a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cli/src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ export class BuildCommand extends Command {
const cargoMetadata = JSON.parse(
execSync('cargo metadata --format-version 1', {
stdio: 'pipe',
maxBuffer: 1024 * 1024 * 10,
}).toString('utf8'),
)
const packages = cargoMetadata.packages
Expand Down

0 comments on commit 6bef28a

Please sign in to comment.