sourcegraph / sourcegraph/src-cli

Warn on any command if not on latest version

オープン
#930 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

good first issue ux
主要言語
Go
スター
356
フォーク
76
平均マージ
1日 2時間
マージ済み PR(30日)
13

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

src version で使用されている既存のバージョンチェックと、/.api/src-cli/version へのリクエストから始めます。すべてのコマンドより前にチェックを実行できるよう、コマンドがどのようにディスパッチされるかを追跡します。古いバージョンではすべてのコマンドの実行時に明確な警告が表示され、最新バージョンでは表示されなければ完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
go
領域
cli
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。