Pebble32 commented on code in PR #77306:
URL: https://github.com/apache/airflow/pull/77306#discussion_r4695560588


##########
ts-sdk/src/cli/pack.ts:
##########
@@ -115,24 +129,42 @@ function readSdkVersion(): string {
 }
 
 function readBundleManifest(bundlePath: string): BundleManifest {
+  // On macOS Node writes a piped stderr asynchronously, so output past the 64 
KiB pipe buffer is
+  // lost when the bundle exits, and Node prints the whole minified line 
before the error.
+  // Writes to a file are synchronous.
+  const stderrDir = mkdtempSync(path.join(tmpdir(), "airflow-ts-pack-"));
+  const stderrPath = path.join(stderrDir, "stderr");
+  const stderrFd = openSync(stderrPath, "w");

Review Comment:
   That's a very good point thanks for the catch



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to