gitlab-zoekt-indexer

module
v0.8.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2024 License: MIT

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

  1. Set GDK_DIR env variable (for example, export GDK_DIR="$HOME/projects/gdk").
  2. Stop GDK indexer if you have it running via gdk stop gitlab-zoekt-indexer-development.
  3. Execute make gdk or make watch-gdk. The latter will restart indexer after every change (requires watchexec).

Running indexer with docker-compose

For trying out zoekt. Not an official installation method.

See example

Running tests

  1. Install a suitable docker client
  2. 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"
    
  3. Run the dependencies:
    docker-compose up
    
  4. Run the tests:
    # One time
    make test
    
    # On every change (requires https://github.com/watchexec/watchexec installed)
    make watch-test 
    

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL