Sourcegraph 2.8 is out today, with support for more languages, huge monorepos, and more!
Sourcegraph is a code search and intelligence tool that helps your team code more productively. With Sourcegraph, developers can find code examples, view references/callers, locate definitions, etc., across all their organization's code in a few seconds with just a few keystrokes. It pretty quickly becomes one of the most-used tools in an organization, as we hear from teams of 10s–1,000s of developers using Sourcegraph.
Sourcegraph runs securely in your own network, takes 5 minutes to install, scales to 1,000s of developers and 10,000s of repositories, and is free to use (with paid upgrades starting at $5/user/month).
New in Sourcegraph 2.8:
Ready to install or upgrade? Get Sourcegraph 2.8.
With code intelligence on Sourcegraph, you can navigate code more easily with hovers, definitions, references, implementations, etc.
Update: Sourcegraph now uses Sourcegraph extensions for language support. This section has been edited to avoid confusion.
We heard from devs at some very large companies that Sourcegraph was slow on their monorepos. To fix this, we first synthesized a huge test monorepo with 11 GB of code, 20 GB of .git data, 1.5M files, 2M commits, and 500k Git refs (by combining the Git repositories of Chromium, Linux, OpenOffice, Kubernetes, and a few others). We then made sure that adding, searching, and browsing that repository was super fast on Sourcegraph.
If your monorepo is smaller than that, Sourcegraph will work great. If your monorepo is even bigger, we'd love to hear if anything is still slow for you.
Our test monorepo is too large for GitHub.com, but you can try the perf improvements on the slightly smaller Chromium monorepo.
Sourcegraph's GraphQL API is ready for you to start building on. Here are some examples of things you can do with the Sourcegraph API on your organization's own Sourcegraph instance:
See Sourcegraph GraphQL API examples for more inspiration.
The API exposes all of the data that Sourcegraph itself uses, such as:
Sourcegraph uses this API for everything, so the API is just as powerful, fast, and reliable as the Sourcegraph itself. You can play around with it on the GraphQL console on on Sourcegraph.com or your own instance. Two other new features shipping today also help you use the API: the Sourcegraph CLI tool and access tokens.
One surprising thing we learned from customers is that never worrying about API rate limits is just as exciting as the new kinds of data exposed by the Sourcegraph API. We put tons of work into making Sourcegraph search, code intelligence, and mirrored Git data access super fast for interactive users--and that means you can write API clients that hit your Sourcegraph instance way harder than you could hit any code host. If needed, get Sourcegraph cluster deployment option for massive scale.
Code intelligence is most powerful when it's available in your code review tool. Our Phabricator integration saw some big improvements in this release:
Install the Sourcegraph extension for Phabricator. Want support for another code host or code review tool (other than GitHub, which is also supported)? File an issue in our public issue tracker.
We've improved Sourcegraph's support for user authentication providers, which allow users to sign into Sourcegraph using their existing accounts in your organization's SSO/directory service. Support is included for SAML, OpenID Connect (including Google Workspace for Google accounts), and HTTP authentication proxies.
auth.providersdefines the list of authentication providers in one place (instead of having authentication configuration scattered among
auth.*properties). Backcompat for the old (now-deprecated)
auth.providerconfiguration is maintained.
This release improves support for access tokens, which enable access to the Sourcegraph API by external tools and scripts.
site-admin:sudoscope for access tokens (which only site admins may use) lets the holder impersonate other users. This lays the foundation for future releases to integrate more closely with external tools in a seamless and authorization-aware manner. Stay tuned!
Along with the Sourcegraph GraphQL API improvements in this release, we're working hard to let you build new kinds of tools on Sourcegraph to speed up and automate your team's work.
Sourcegraph no longer tracks any detailed usage data, so the
disableTelemetry configuration option has been deprecated. (The telemetry that it disabled has been completely removed.)
Sourcegraph instances will ping Sourcegraph.com periodically with high-level and aggregate data. It never sends code, repository names, usernames, or any other specific data. Customers can disable pings. Contact support to learn more.
See the Sourcegraph changelog for a list of all changes in this release.
Ready to install or upgrade? Get Sourcegraph 2.8.
Questions/feedback/complaints/requests? Contact us at @sourcegraph or [email protected], or file issues on our public issue tracker. We're planning for our next release, Sourcegraph 2.9 in mid-June, right now. The sooner we hear from you, the better!