module
Version:
v0.6.1
Opens a new window with list of versions in this module.
Published: Apr 19, 2024
License: MIT
Opens a new window with license information.
README
¶
gitlab-zoekt-indexer
Compiling the binary
$ make
$ ./bin/gitlab-zoekt-indexer
2023/08/14 11:07:29 Usage: ./bin/gitlab-zoekt-indexer [ --version | --index_dir=<DIR> | --path_prefix=<PREFIX> | --listen=:<PORT> ]
Running indexer in GDK mode
- Set
GDK_DIR env variable (for example, export GDK_DIR="$HOME/projects/gdk").
- Stop GDK indexer if you have it running via
gdk stop gitlab-zoekt-indexer-development.
- Execute
make gdk or make watch-gdk. The latter will restart indexer after every change (requires watchexec).
Running tests
- Install a suitable docker client
- Add zoekt-webserver to your PATH. If you have zoekt enabled in your GDK you can do:
export GDK_DIR="$HOME/projects/gdk"
export PATH="$GDK_DIR/zoekt/bin:$PATH"
- Run the dependencies:
docker-compose up
- Run the tests:
# One time
make test
# On every change (requires https://github.com/watchexec/watchexec installed)
make watch-test
Directories
¶
cmd
|
|
|
|
|
internal
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.