sourcegraph / sourcegraph/src-cli
Warn on any command if not on latest version
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 356
- Forks
- 76
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 13
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.
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.
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.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100