-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Warnings/errors from "brew edit" commands being routed to standard output. #9874
Comments
Hey @btb! Good first issue. I cannot reproduce faulty behaviour on my macOS-14 too. Seems to be the real case. We'll check what might be done to resolve it. |
"brew edit --print-path" is currently broken on other runners actions/runner-images#9874
Hello @btb . After investigation we found that problem could be in new |
Description
This unusual routing prevents the normal output from being captured in a variable and used.
I see the problem doesn't occur on the macos-11 runner, but it does occur on every other macos runner I tried.
I see that the version of homebrew is older on the macos-11 runner (4.2.5) whereas the other runners use homebrew 4.3.0. But I don't think this is the whole problem, since I cannot reproduce this problem on my own machine running macos 14 and homebrew 4.3.0.
Platforms affected
Runner images affected
Image version and build link
20240514.3
Is it regression?
yes
Expected behavior
When using a command
brew edit --print-path [formula]
the result should be printed on stdout, allowing you to capture the output for use in other commands. Any warnings should be printed on stderr.should result in something like:
where you see the errors/warnings as the command is run, then you see the captured formula path afterward.
Here's a run showing that it used to work in macos-14-arm64:
https://github.com/btb/d2x/actions/runs/8953473131/job/24592024810
Here's a run showing it still works normally using the macos-11 runner: https://github.com/btb/d2x/actions/runs/9121219819/job/25080022032
Actual behavior
The warnings/errors are somehow being routed to the standard output, so they are improperly captured in the variable.
results in:
Here's the run where it stopped working in macos-14-amd64: https://github.com/btb/d2x/actions/runs/9120125848/job/25077018332
Repro steps
Run the 'brew edit' command in a "run" shell, and capture its output to a variable
.
The text was updated successfully, but these errors were encountered: