0

今天早些时候,我在我的 windows 10 机器上安装了 GitHub CLI 包,同时我正在写一篇关于如何在 windows 上安装和配置 GitHub CLI 的文章。为此,我安装了Scoop并将其与运行一起使用scoop install gh来安装 CLI。两个小时后,GitHub 发布了1.5.0的 CLI 版本。我现在正尝试在 scoop 运行的情况下更新我的 gh 版本,scoop update gh但 Windows PowerShell 中的输出显示它已经更新,并将版本 1.4.0 称为最后一个版本。

Updating 'main' bucket...
Checking repo... ok
The main bucket was added successfully.
Scoop was updated successfully!
gh: 1.4.0 (latest version)
Latest versions for all apps are installed! For more information try 'scoop status'

对于如何使用 scoop 更新包 GitHub CLI,我很感激。

4

1 回答 1

0

第二天我试过了,它奏效了。运行scoop gh update本身的输出消息提供的答案是:

scoop 在大量库上运行它的嗅探过程,这就是在更新它的引用之前延迟的原因。它是指事件发生和数据可用性之间的时间段,数据新鲜度可以是每日或与独家新闻平台相关的时区。

我在这里提供输出:

 scoop update gh                                                                                       Updating Scoop...                                                                                                       Updating 'main' bucket...
 * 021a07f95 vim-nightly: Update to version 8.2.2389                     4 hours ago
 * 8460e4a56 gh: Update to version 1.5.0                                 4 hours ago
 * 3d17708f1 doctl: Update to version 1.55.0                             4 hours ago
 * 0129735ec azure-functions-core-tools: Update to version 3.0.3245      4 hours ago
 * c796dbc39 argocd: Update to version 1.8.3                             4 hours ago
 * 3784173a5 pulumi: Update to version 2.18.1                            9 hours ago
 * 1e550f204 aws: Update to version 2.1.21                               11 hours ago
 * 41d6beb5e heroku-cli: Update to version 7.47.10                       12 hours ago
Scoop was updated successfully!
gh: 1.4.0 -> 1.5.0
Updating one outdated app:
Updating 'gh' (1.4.0 -> 1.5.0)
Downloading new version
gh_1.5.0_windows_amd64.zip (5.6 MB) [=========================================================================] 100%
Checking hash of gh_1.5.0_windows_amd64.zip ... ok.
Uninstalling 'gh' (1.4.0)
Removing shim for 'gh'.
Unlinking ~\scoop\apps\gh\current
Installing 'gh' (1.5.0) [64bit]
Loading gh_1.5.0_windows_amd64.zip from cache
Extracting gh_1.5.0_windows_amd64.zip ... done.
Linking ~\scoop\apps\gh\current => ~\scoop\apps\gh\1.5.0
Creating shim for 'gh'.
'gh' (1.5.0) was installed successfully!
于 2021-01-22T10:56:15.060 回答