Closed btb closed 4 weeks ago
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.
Hello @btb . After investigation we found that problem could be in new runner
version. Behavior also reproducible using self-hosted
runner on local MacOS machine , so unfortunately we cannot do nothing from our side with it. You can create issue in runner repo for fixing it in a future. As workaround you can enable brew developer mode and set HOMEBREW_NO_INSTALL_FROM_API
variable in runtime for avoiding warnings. I am closing issue but you if you have additional questions feel free to reach me out.
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 .