Warn on any command if not on latest version

Open
#930 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
go
Domain
cli

Research direction

Start with the existing version check used by src version and the request to /.api/src-cli/version. Trace how commands are dispatched so the check can run before any command. Done means an out-of-date version produces a clear warning during every command while current versions do not.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Go
Stars
356
Forks
76
Avg merge
1d 2h
Merged PRs (30d)
13

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from sourcegraph/src-cli

All issues in sourcegraph/src-cli

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.