Skip to content

Instantly share code, notes, and snippets.

Last active December 5, 2020 07:14
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
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 --public_resources /tmp
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