Skip to content

Not able to read local repo #1044

@tarangpatel

Description

@tarangpatel

I am using docker locally and I have setup config file as following:

config.json

{
    "$schema": "https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/schemas/v3/index.json",
    // Comments are supported.
    // This config creates a single connection to GitHub.com that
    // indexes the Sourcebot repository
    "connections": {
        "local-connection": {
            "type": "git",
            "url": "file:///Users/path/to/repo"
        }
    }
}

but Sourcebot console on docker keep saying

Error: Config file '/Users/tarang.patel/Desktop/Source-Bot/config.json' is invalid: data/connections/local-connection/type must be equal to constant, data/connections/local-connection/type must be equal to constant, data/connections/local-connection/type must be equal to constant, data/connections/local-connection/type must be equal to constant, data/connections/local-connection/type must be equal to constant, data/connections/local-connection must have required property 'token', data/connections/local-connection/url must match pattern "^(https?:\/\/[^\s/$.?#].[^\s]*|file:\/\/\/[^\s]+)$", data/connections/local-connection must match exactly one schema in oneOf

    at loadConfig (/app/packages/shared/src/env.server.ts:110:15)

    at async <anonymous> (/app/packages/shared/src/env.server.ts:122:20)

    at async <anonymous> (/app/packages/shared/src/env.server.ts:116:20)

Node.js v24.14.0

Not sure where is the issue ? I made sure the repo has .git folder.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions