cool-easter-32542
12/11/2023, 8:55 PM./pants run src/python/pants_release/release.py -- test-release, which seemingly should print out the version of the latest release on the branch.
However, when running this on version 2.18.x, 2.19.x, and main, it prints the version to the terminal instead of it being captured by the subprocess.run. I tried a few different variants such as subprocess.check_output, etc, but none of them gave any captured output on stdout or stderr.
Additional info
Posted this image on Slack while debugging; where I'm using capture_output=True, but you can see both stdout and stderr are empty. before is printed right before subprocess.run, and the standard streams are dumped immediately after.
image
Thread here:
https://pantsbuild.slack.com/archives/C0D7TNJHL/p1702293492621779
pantsbuild/pants