Download progress reporting #5988
Unanswered
robert-at-pieces
asked this question in
Everyday usage
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Output of
brew config
Output of
brew doctor
Description of issue
I am attempting to write a wrapper around Homebrew in the Dart language and simply executing it through Process.start.
I noticed that the curl command had the '--silent' flag passed to it when running brew install without the '--quiet' flag and with the '--verbose' flag.
The silent flag is not passed to curl when running the same command through the terminal.
Here is the command I used
I believe this is happening because of this line in the homebrew source:
https://github.com/Homebrew/brew/blob/0c2c76351c62329cd368620519c09f529e57134e/Library/Homebrew/utils/curl.rb#L133C33-L133C39
If I understand this correctly, the silent flag is automatically added if stdout is not attached to a terminal session. However, this makes it so I cannot listen to stdout or stderr for curl download progress and forward the percentage to my application.
Is there a workaround for this or did I miss something?
Beta Was this translation helpful? Give feedback.
All reactions