有没有办法以百分比形式查看 "pod update" 或 "git clone" 进度?
Is there a way to see "pod update" or "git clone" progress in percents?
我正在为我的 pod 做 pod update MyPod --verbose
,它位于私有 Github 存储库中(因此通过 ssh 下载)。有时需要 5 分钟,有时需要 25 分钟(这让我抓狂)。我正在使用 --verbose
查看发生了什么。
通常它停留在 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'...
我正在检查 Activity Monitor
中的 Network
选项卡以查看下载是否正在进行 - 是的,是的,但我没有看到类似“pod update is 56 % 完全的”:
有没有办法查看pod update
的Git download
步的确切进度?
正如我在“当您从终端 运行 git clone
中默认启用 Progress indicator for git clone", --progress
但是当 运行 来自像 pod update
这样的 script/command 时,情况就不是这样了。
接下来是 CocoaPods/CocoaPods
issue 1349 确认:
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.
我正在为我的 pod 做 pod update MyPod --verbose
,它位于私有 Github 存储库中(因此通过 ssh 下载)。有时需要 5 分钟,有时需要 25 分钟(这让我抓狂)。我正在使用 --verbose
查看发生了什么。
通常它停留在 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'...
我正在检查 Activity Monitor
中的 Network
选项卡以查看下载是否正在进行 - 是的,是的,但我没有看到类似“pod update is 56 % 完全的”:
有没有办法查看pod update
的Git download
步的确切进度?
正如我在“当您从终端 运行 git clone
--progress
但是当 运行 来自像 pod update
这样的 script/command 时,情况就不是这样了。
接下来是 CocoaPods/CocoaPods
issue 1349 确认:
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.