Warn on any command if not on latest version

未關閉
#930 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
45/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
go
領域
cli

研究方向

src version 使用的現有版本檢查以及對 /.api/src-cli/version 的請求開始。追蹤命令的分派方式,以便在任何命令之前執行檢查。完成標準是:過時版本在每個命令執行期間都會產生明確的警告,而目前版本不會產生警告。

由索引模型根據 Issue 內容生成。

描述

good first issue ux

Many users encounter bugs from outdated versions of src-cli and raise them to support before realizing they were already fixed and just needed to update. Recently, a user hit a nasty bug when they were unintentionally running a version 16 months out of date! We should try to warn users if the version of src-cli they are running is not at or above the version recommended by their Sourcegraph instance (/.api/src-cli/version). We already perform this check when running src version:

> src version
Current version: 4.3.0
Recommended version: 4.4.0 or later

We should perform this check before running any command and highlight a warning in the output if it's out-of-date.

主要語言
Go
星號
356
分支
76
平均合併
1 天 2 小時
30 天內合併 PR
13

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

sourcegraph/src-cli 的其他 Issue

查看 sourcegraph/src-cli 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。