Warn on any command if not on latest version
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
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
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from sourcegraph/src-cli
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
sourcegraph/src-cli#1345 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
sourcegraph/src-cli#1150 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
sourcegraph/src-cli#1144 · 3 comments ·
All issues in sourcegraph/src-cli
Similar issues
-
feature-request helm
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gravitational/teleport#69785 ·
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
crossplane/crossplane#7859 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100