dependencies search: Integration with lsif-go uploads
Created by: tsenart
Dependencies search of Go dependency repos needs to be integrated with lsif-go uploads. There are three known issues that prevented us from doing this in a short amount of time before the 3.39 release:
- The emitted scheme is
gomod
rather than the internalgo
which causes the dependency sync scheduler to not insert any dependency repos. - The emitted dependency names are URLs, which is different from what we find in go.mod files, and what the lockfiles service emits. We need to strip the URL schemes.
- The versions are also different from what we find in go.mod files, for instance, specific commits are encoded as
9054f6ed7bac
instead ofv0.0.0-20220407144326-9054f6ed7bac
which is what we find in the go.mod file.