Go
To index Go we use SourceGraph's SCIP indexer for Go. SCIP is a format for tools to share information about code.
Prerequisitesβ
You will need:
- scip-go, with binary releases available for x86 Linux
- scip-to-glean, the SCIP-to-Glean converter
- A recent (>1.15) version of Go
Run the indexerβ
Ensure that you have built and installed Glean and
the glean executable is on your PATH.
Index your Go repository with:
glean index go DIR --db-root DB --db NAME/INSTANCE
where
DBis the directory where you want to store your Glean DBsDIRis the root directory containing the Go projectNAME/INSTANCEis the name of the repository to create
In the shellβ
Go source can also be indexed directly from the Glean shell:
:index go DIR
The shell will pick a DB name and hash for you based on DIR.
Schemaβ
The schema is in glean/schema/source/scip.angle