Zoekt indexer doesn't use universal-ctags
Summary
Sourcegraph documentation specifies that ctags
binary should be named universal-ctags
and available in $PATH
.
Ubuntu, Debian and Arch provide universal ctags with seccomp support compiled in. Zoekt expects the universal-ctags binary to be on $PATH. Note: only Ubuntu names the binary universal-ctags, while most distributions name it ctags.
And we've hit exactly this problem.
Steps to reproduce
This is what happens in our gitlab-zoekt-indexer
image:
git@gitlab-zoekt-0:/$ which ctags
/usr/bin/ctags
git@gitlab-zoekt-0:/$ which universal-ctags
git@gitlab-zoekt-0:/$ universal-ctags
bash: universal-ctags: command not found
What is the current bug behavior?
Zoekt Indexer doesn't use Ctags
What is the expected correct behavior?
It should use Ctags
Relevant logs and/or screenshots
Possible fixes
We should rename the binary or create a symbolic link. After that we should probably verify that indexer actually uses ctags.
cc @DylanGriffith @terrichu @johnmason @changzhengliu @bvenker
Edited by Dmitry Gruzd