mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 17:11:49 +00:00
app: better warning if src-cli is not installed (#48880)
Sourcegraph already runs best-effort if `src` is not on your path. However, the errors are not very clear about the impact or how to install it. This simply adds a better error message for it:  Fixes #46543 ## Test plan Manually tested by removing `src` from my path and running `sg start app` --------- Signed-off-by: Stephen Gutekanst <stephen@sourcegraph.com> Co-authored-by: Joe Chen <joe@sourcegraph.com>
This commit is contained in:
parent
8ac0afd053
commit
47218d030c
@ -149,6 +149,14 @@ func Init(logger log.Logger) {
|
||||
)
|
||||
}
|
||||
|
||||
if _, err := exec.LookPath("src"); err != nil {
|
||||
printStatusCheckError(
|
||||
"src-cli is unavailable",
|
||||
"Sourcegraph is better when src-cli is available; batch changes may not work.",
|
||||
"Installation: https://github.com/sourcegraph/src-cli",
|
||||
)
|
||||
}
|
||||
|
||||
// generate a shell script to run a ctags Docker image
|
||||
// unless the environment is already set up to find ctags
|
||||
ctagsPath := os.Getenv("CTAGS_COMMAND")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user