Dependencies search beta

Dependencies search is a code search feature that lets you search through the dependencies of your repositories.

Setup

Configure a package host connection for each kind of dependency you want to search over. Currently only npm dependencies are supported.

Use cases

Resolve an incident faster by quickly finding where an error comes from and then understanding the code around it by leveraging code intelligence.

r:deps(^github\.com/sourcegraph/[email protected]) Observable cannot be called as a function

Compatibility

The following table outlines the kinds of dependency repositories that dependency search supports and how it finds those dependencies in your repositories.

Kind How Supported
npm package-lock.json
npm yarn.lock
JVM gradle.lockfile
JVM pom.xml
Go go.sum
Python poetry.lock

Reference