Please note that the following features are no longer supported in v3:
- Local file indexing
- Raw remote
.gitrepo indexing (i.e. not through a supported code host)
This migration will require you to reindex all your repos
1
Spin down deployment
2
Delete Sourcebot cache (.sourcebot directory)
3
Migrate your configuration file to the v3 schema
The main change between the v3 and v2 schemas is how the data is structured. In v2, you defined a In v3, you define a The schema of the connections defined here is the same as the “repos” you defined in the v2 schema. Some helpful notes:
repos array which contained unnamed config objects:connections map which contains named connection objects:- The name of the connection (
sourcebot-connectionandwireshark-connectionabove) is only used to identify the connection in Sourcebot. It can be any string that contains letters, digits, hyphens, or underscores - A connection is associated with one and only one code host platform, and this must be specified in the connections
typefield - Make sure you update the
$schemafield to point to the v3 schema - The
settingsobject doesn’t need to be changed. We’ve added new settings params (check out the v3 schema for more details)
4
Start your Sourcebot deployment
When you start up your Sourcebot deployment, it will create a fresh cache and begin indexing against your new v3 configuration file.If there are issues with your configuration file it will provide an error in the console.
After updating your configuration file, restart your Sourcebot deployment to pick up the new changes.
Troubleshooting
Some things to check:- Make sure you update the
$schemafield in the configuration file to point to the v3 schema - Make sure you have a name for each
connection, and that the name only contains letters, digits, hyphens, or underscores - Make sure each
connectionhas atypefield with a valid value (gitlab,github,gitea,gerrit)

