Is there a way to see "pod update" or "git clone" progress in percents?

Viewed 131

I'm doing pod update MyPod --verbose for my pod, which lives in a private Github repo (so downloaded via ssh). Sometimes in takes 5 minutes, sometimes 25 (thus driving me crazy). I'm using --verbose to see what's going on. Usually it stucks on git clone:

Fetching external sources
-> Pre-downloading: `MyPod` from `MyGithubUrl`, branch `MyBranch`
  $ /usr/bin/git ls-remote MyGithubUrl MyBranch
  611a1146a741404d6e4a982fa1548c95d3772d54  refs/heads/MyBranch
 > Git download
 > Git download
     $ /usr/bin/git clone MyBranch
     /var/folders/kj/55ym60x155dctzvc8pvym10r0000gn/T/d20210830-13232-1gq5j6e --template=
     Cloning into '/var/folders/kj/55ym60x155dctzvc8pvym10r0000gn/T/d20210830-13232-1gq5j6e'...

I'm checking a Network tab in Activity Monitor to see if the download is in progress - and yes, it is, but I don't see smth like "pod update is 56% completed": enter image description here

Is there a way to see the exact progress of Git download step of pod update?

1 Answers

As I mentioned in "Progress indicator for git clone", --progress is enabled by default when you run git clone from a terminal

But that is not the case when run from a script/command like pod update.

This is followed by CocoaPods/CocoaPods issue 1349 which confirms:

From a quick test adding the --progress flag to the git clone commands is not working.

We have discussed this issue and concluded that progress indicator would be nice to have.
However implementing it is not trivial per se and taking into account the requirements of an indented verbose output.
Many other package managers do not display progress for git downloads.

Another point, is that progress indicator would be just a bandaid and the real solution is fast downloads.
Download speed has greatly been improved in the last releases.
For those edge cases where the original repo is really huge we recommend to check the ā€œActivity Monitorā€ App.

Closing as won't fix.

Related