Skip to content

Instantly share code, notes, and snippets.

@robinp
Last active Dec 5, 2020
Embed
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 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