Skip to content

Instantly share code, notes, and snippets.

@robinp
Last active December 5, 2020 07:14
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robinp/a7a10db5b38630a9a0ffc805fc402500 to your computer and use it in GitHub Desktop.
Save robinp/a7a10db5b38630a9a0ffc805fc402500 to your computer and use it in GitHub Desktop.
Indexing Kythe Go parts
bazel build kythe/go/languageserver/... --experimental_action_listener kythe/go/extractors/cmd/bazel:extract_kzip_go
./bazel-bin/kythe/go/indexer/cmd/go_indexer/go_indexer $(find bazel-out/k8-fastbuild/extra_actions -name '*.go.kzip') > go.ents
./bazel-bin/kythe/go/serving/tools/write_tables/write_tables --experimental_beam_pipeline --entries go.ents --out /data/kythe/beamed
# To serve it:
# Note: public_resources set to /tmp since not needed when only API is used.
./bazel-bin/kythe/go/serving/tools/http_server/http_server --serving_table /data/kythe/beamed --listen 0.0.0.0:8080 --public_resources /tmp
@achew22
Copy link

achew22 commented Jul 12, 2019

Since this was created the experimental action listener has been moved. I found that this worked instead of line 1:

bazel build kythe/go/languageserver/... --experimental_action_listener=//kythe/extractors:extract_kzip_go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment