Skip to content

Commit dd6fee8

Browse files
NyanCatTW1MatthewLM
authored andcommitted
Fix secp256k1 build when only docker is available
1 parent 084c67c commit dd6fee8

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

coinlib/bin/docker_util.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Future<bool> dockerRun(
2525
// Build
2626
print("Building $tag");
2727
var exitCode = await execWithStdio(
28-
dockerCmd, ["build", "-f", "-", "-t", tag],
28+
dockerCmd, ["build", "-t", tag, "-"],
2929
stdin: dockerScript,
3030
);
3131

coinlib/bin/util.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ Future<int> execWithStdio(
2929
await process.stdin.close();
3030
}
3131

32-
await process.stdout.transform(utf8.decoder).forEach(stdout.write);
32+
// Pipe stdout to terminal and discard stderr
33+
await Future.wait([
34+
process.stdout.transform(utf8.decoder).forEach(stdout.write),
35+
process.stderr.drain<String?>(),
36+
]);
3337

3438
return await process.exitCode;
3539
}

0 commit comments

Comments
 (0)