Announcing Sourcegraph 2.13

Announcing Sourcegraph 2.13 Sourcegraph 2.13 ships today, with several improvements: Indexed search option for single-node Docker container deployment to speed up searches (previously Enterprise-only, now free and open-source) More ways to specify which GitHub and GitHub Enterprise repositories to… Read more

Sourcegraph on the future of coding podcast episode 32

Our CEO @sqs (Quinn Slack) was on the Future of Coding podcast this week to talk about basic developer human rights, the Sourcegraph master plan , and the future of developer tools. As a developer, you have these questions you need answered: How do I do this thing in the code? Why is it built… Read more

Sourcegraph 2.12: Build your own Sourcegraph extensions, GitLab integration, code discussions, and self-service checkout

We are building the best code search and browsing tool for your team to help you write, review, and ship code better. Our mission is to bring the future sooner by bringing the best tools to developers everywhere. Our announcement this month that Sourcegraph is now open source is one way we… Read more

Build your own Sourcegraph extensions

We’re happy to announce that Sourcegraph extensions are ready for early adopters to start writing their own extensions. Sourcegraph extensions allow you to extend code hosts like GitHub in the same way that editor extensions allow you to extend editors. Once you write an extension, it runs… Read more

Pricing and package changes

Earlier this month, we made most of Sourcegraph open source . As a part of this, more of Sourcegraph’s advanced features will be available to you for free, and one feature needed by larger companies is becoming paid. These changes will make it easier for teams to get started and get the full power… Read more

Product subscriptions and license keys

Site admins now have an easy way to enable paid Sourcegraph Enterprise features on an existing Sourcegraph instance. When you start a new Sourcegraph instance, you'll be using the features that are free (and implemented in open source ). This is called Sourcegraph Core. You can use this for free… Read more

Discuss code and docs in repositories

Now that Sourcegraph is open source , we want everyone to be able to contribute to our code and product roadmap. To make this easy and open, we’re announcing code discussions: With code discussions, you can: Discuss a selection of code that has already been committed. See discussions attached to… Read more

Sourcegraph for GitLab

You can now get code intelligence on GitLab with the Sourcegraph browser extension, just as 10,000s of developers get on GitHub now. To start using this: Install Sourcegraph for Chrome or Sourcegraph for Firefox Visit common/executor.go in gitlab-org/gitlab-runner on GitLab (or any other file… Read more

Sourcegraph is now open source

Sourcegraph is now open source Sourcegraph development is now open source (Apache License) at github.com/sourcegraph/sourcegraph ! You can now contribute to Sourcegraph: Submit PRs to the Sourcegraph open-source project See, discuss, and propose changes to the work-in-progress product roadmap Add… Read more

Code Intelligence in Vim

Do you use Vim and miss the powerful features for navigating your code that Sourcegraph gives you in your browser? Code intelligence in Sourcegraph is powered by language servers that implement the Language Server Protocol . This means you can install these language servers locally and get code… Read more

How we run end-to-end tests in Buildkite CI

End-to-end tests are an important part of our testing infrastructure at Sourcegraph. At the top of the testing pyramid , their job is to ensure key user flows work properly from the user interacting with the browser all the way to backend services that work behind the scenes. However, they pose a… Read more

Sourcegraph 2.11: Easier Configuration and Deployments, and Sourcegraph Extensions

Our mission is to build the best code search and browsing tool for your team to help you write the highest quality software possible. Here’s new, what’s changed, and what’s fixed. Simplified Browser Extension Configuration Deploy Sourcegraph Data Center to Kubernetes with Plain YAML Webhooks for… Read more

The pain that minimal version selection solves

Minimal version selection is an idea that Russ Cox proposed for how to resolve the dependencies of Go modules . When installing or updating dependencies, minimal version selection always selects the minimal (oldest) module version that satisfies the overall requirements of a build. Minimal version… Read more

How To Support Your Employee Through Pregnancy, Maternity Leave and the Transition Back To Work

Today was my first day back to work at Sourcegraph after my 3 1/2 months* long maternity leave. I consider myself lucky to be working at a company that is family friendly and has made my journey to parenthood much easier than expected. I decided to share some of the points I believe Sourcegraph… Read more

Sourcegraph liveblogging at GopherCon 2018!

We are Sourcegraph, known to our Developers as " a great source code browsing/discovery tool, especially for large codebase like k8s ", and " like Google's internal code search but for rest of us ". We help developers write better software by giving them IDE like features in code hosts such as… Read more

The August 2018 Docker Hub outage and the impact on Kubernetes deployments

Docker announced that the Docker Hub and Docker Store (backed by the same Docker Registry) will be down (totally offline) from 11:00 Pacific Time 25 August with 15-45 minutes (expected) downtime. You may be thinking “I use Kubernetes, doesn’t this only affect people executing ? Well yes, but… Read more

Sourcegraph browser extensions are now open source

Sourcegraph for Chrome and Sourcegraph for Firefox are now open source at sourcegraph/browser-extensions . These popular browser extensions add code intelligence (hovers, go to definition, find references, find implementations, and soon much more) to every website where you read code… Read more

Hack time at Sourcegraph

One of my favorite things about Sourcegraph is the fact that we are a team of developers building a product for developers. This means that everyone on the team has product intuition and can participate in planning what we are going to work on for our next release. Normally we spend time reviewing… Read more

Sourcegraph 2.10: Smoother tooltips, rendered architecture diagrams, and better repository syncing

We're working hard to build the best code search and browsing tool for your team , so you can write, review, and ship code better. In this month's release, we focused on improving the user experience and repository syncing for Sourcegraph's integrations with GitHub, GitHub Enterprise, Bitbucket… Read more

Sourcegraph 2.9: Scaling code search and user rollout in large organizations

In Sourcegraph 2.9, we focused on improving the code search, rollout, and deployment experience for organizations with 100s and 1,000s of developers and repositories. We're building Sourcegraph to be the best way for developers to search and browse code , and we're thankful for all the feedback… Read more

Our project-based interview experiment for hiring engineers

At Sourcegraph, we’re building not only a great product for engineers, but also a great, inclusive company for engineers to be a part of. Over the last few months, we’ve been experimenting with our hiring process and wanted to share our experience so far. (Our last experiment was putting open roles… Read more

Code intelligence for 13 more languages, with first-class LSP support

With code intelligence on Sourcegraph, you can navigate code more easily with hovers, definitions, references, implementations, etc. It's all powered by language servers based on the Language Server Protocol (LSP) standard (Microsoft's official LSP site also has more information). Now, thanks… Read more

Sourcegraph 2.8: 19 languages, ridiculously huge monorepos, LSP, a GraphQL API, and more

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… Read more

Why Chris joined Sourcegraph

Having worked at GitHub and spent more time than is probably warranted tweaking my dotfiles , I consider myself a developer tools enthusiast. Recently, I found myself spending more and more of my free time smoothing out my development process, including hacking on auto-import for Haskell in VS… Read more

Sourcegraph 2.7: code intelligence in pull requests and commit diffs

Sourcegraph 2.7 ships today, with tons of new features and improvements to help your team build better software. Get code intelligence in seconds with no setup, view diffs with code intelligence directly in Sourcegraph, and get more information when finding references. This release comes with many… Read more

How Sourcegraph builds Sourcegraph

Our product, Sourcegraph, lets software teams search and explore their code, so naturally we think a lot about how to help software teams ship better software faster. As we've grown, we've learned a lot from GitHub , Visual Studio Code , GitLab , and other teams who have shared their internal… Read more

Powerful code search for Bitbucket Server

Today, we're bringing fast, powerful code search to the thousands of development teams on Bitbucket Server. With Sourcegraph Server 2.6, we've built out native support for Bitbucket Server to make it easier to get code search across all your Bitbucket Server repositories. Follow these 4 steps to get… Read more

Introducing Sourcegraph Server 2.6: Symbol search for 75+ languages

We’re excited to announce Sourcegraph Server 2.6, with tons of new features and improvements to help your team build better software. Search for and jump directly to symbols, search for the code you need more quickly, and set up Sourcegraph to search across all of your code--all available now. This… Read more

When is it ok to recover from panics in Go?

In Go, it is idiomatic to have explicit error handling. This means that many functions return an in addition to the expected result (e.g. strconv.ParseBool ). Go code can also panic and recover , which is similar to throwing and catching exceptions in other languages. In Go, panic should be… Read more

Sourcegraph Server 2.5: Introducing code change alerts

Monitor code changes with Google Alerts-style notifications, get code intelligence in reviews/PRs, and search over thousands of repositories in hundreds of milliseconds—all with Sourcegraph Server 2.5, shipping today. This release also includes other highly requested features, such as native GitLab… Read more

Announcing Sourcegraph Server 2.4: free, powerful search for your private code

Sourcegraph Server 2.4 is here. It is now free for unlimited users and repositories, can be installed in minutes with a single command, and is easily configurable in the new web-based site admin. This release also includes many performance and bug fixes, plus a better interface for monitoring… Read more

Introducing Sourcegraph Server 2.3

Search code over all of your company's repositories, save and reuse common search queries and scopes, and do it all more quickly with style. This release also includes previews of diff/commit search and author/date filters, which help you debug issues and find usage examples in your company’s code… Read more

Great code search for AWS CodeCommit

Install Sourcegraph Server to get great code search on AWS CodeCommit Sourcegraph brings great code search and understanding abilities to development teams using AWS CodeCommit . Code search helps your engineering team find usage examples, debug errors, reuse existing libraries and packages, and… Read more

Great code search, bad code search

This is inspired by the classic essay Good Product Manager/Bad Product Manager . Great code search is so fast and relevant that you use it constantly while coding. It’s one of your top keybindings. Bad code search is slow and stale, and you only find it useful a few times per week. If you haven’t… Read more

Regexp queries, directories, OpenID Connect, and more updates to Sourcegraph Server

We've been hard at work on improvements to Sourcegraph Server to give you great code search on your company's code. Here's what's new and improved: Code search: There is now a directory listing view with the last Git commit for each subdirectory and file. Query terms are now interpreted as… Read more

More powerful code search on Sourcegraph

Today, we're releasing more powerful code search on Sourcegraph.com and Sourcegraph Server. You can use operators such as repo: and file: to restrict your search to certain repositories and files (by regular expression match on their name). For example, repo:foo will restrict your query to… Read more

Announcing Sourcegraph 2.0

We’ve been hard at work on some major improvements to how you edit, search, and review code. Today we’re excited to announce four big new features. What’s new and different: A single search box to search code and repositories, with regular expression and other advanced query support Streamlined… Read more

Code intelligence on GitHub embedded code snippets

At Sourcegraph, we think you deserve code intelligence whenever you’re looking at code. So, when GitHub introduced embedded code snippets for GitHub issues, we quickly updated the Sourcegraph Chrome extension to add code intelligence to these snippets. Code intelligence on embedded code snippets… Read more

File tree navigation on GitHub? Yes, please.

We’ve added a file tree to GitHub so that you can quickly explore an entire repository and jump between files without taking your hands off the keyboard. Get started by downloading the Sourcegraph for GitHub Chrome extension And then jump into a repository https://github.com/hootsuite/atlantis… Read more

More control over your team's GitHub code on Sourcegraph

Update (January 2018) : Sourcegraph Server is a free, self-hosted code search server that integrates with your code host and supports multi-repository, regexp, and diff searches. We've heard from many developers who want to use Sourcegraph to search and navigate their team's private code but who… Read more

Better GitHub code search and browsing with the Sourcegraph Chrome extension

Faster, smoother GitHub code browsing with the updated Sourcegraph Chrome extension. We’re excited to announce more improvements to the Sourcegraph Chrome extension. More than 10,000 developers use it to browse and search code on GitHub with the power of an IDE. In addition to the new features… Read more

Sourcegraph, Code Intelligence, and the Language Server Protocol

Pick your favorite Java repository and a revision and file at random (or try this one ). Visit that file in Sourcegraph and within seconds, you can jump to definition (Ctrl/⌘-click), find all references (right click), search for symbols (Ctrl/⌘-p), and view usage examples drawn from other… Read more

Code Intelligence for Java now available on Sourcegraph

Today, we announce general availability for Java on Sourcegraph. If you write Java, this means that you can now use Sourcegraph to: Explore code without losing your place in your editor Get IDE-like functionality to your code review tool Learn from usage examples drawn from across the open-source… Read more

See how many people use a Java library, with Sourcegraph badges

Update (September 20, 2017): Viewing a list of repositories that refer to another repository is currently disabled. It will be added back soon. Viewing function call sites across repositories is still supported. We’re excited to announce that Sourcegraph “used by” badges now support Java… Read more

Introducing code search in Sourcegraph

In-repository code search is now available in Sourcegraph. Simply click the magnifying glass icon above the file tree, type your search term, and click enter. Once you select a result, you’ll get full code intelligence , including our info panel whenever you click a method, variable or struct. In… Read more

How Caddy auto-detects HTTPS interception

Matt Holt is the creator of the popular Caddy Web Server. Caddy is called what it is because it acts like a compartment for all your server things. Most people use its HTTP server, but Caddy can also serve DNS , and there are a number of other plugins that extend Caddy’s functionality. Caddy is… Read more

Code Intelligence now available for Java on Sourcegraph.com

Today, we’re enabling Code Intelligence on Sourcegraph.com for Java projects that use Maven. Our preview release of Java means you can jump to definition, find references, and hover over for docs on many of your favorite Java repositories — all without configuring a single editor plugin or cloning a… Read more

Part 1: How Sourcegraph scales with the Language Server Protocol

The problem of Code Intelligence and the need for an open standard Update: Part 2 of this series is now published . Sourcegraph lets you view any line of code in your web browser with all the navigation features of an IDE and more. That includes both classic abilities — like jump-to-definition… Read more

Part 2: How Sourcegraph scales with the Language Server Protocol

Making Code Intelligence “just work” In my last post , I introduced the Language Server Protocol as the open-source protocol that we at Sourcegraph believe will enable a new set of developer tools powered by Code Intelligence . Code Intelligence, if you recall, is just shorthand for jump-to-def… Read more

See how many people use your library, with Sourcegraph badges

Update (September 20, 2017): Viewing a list of repositories that refer to another repository is currently disabled. It will be added back soon. Viewing function call sites across repositories is still supported. As an open-source author, I love seeing who else uses my projects. It’s super… Read more

Go code intelligence on Sourcegraph: now in general availability (GA)

First, some background: Beyang and I have deep respect for how Google builds software. Beyang interned there, and I’ve worked with Googlers on many open-source projects, including Chromium. What’s their secret? How are they so good? Ask any Google developer, and they’ll give much of the credit to… Read more

Sourcegraph founders featured on Forbes “30 under 30” list

I have been fortunate in my career to work with some amazing founders and CEOs. Lloyd Tabb, Ben Porterfield, and Frank Bien at Looker are building the data platform that I have been craving since I started working in technology. Nat Friedman and Miguel de Icaza at Xamarin brought mobile development… Read more

Poetically simple code review

(Note: if you want to skip the poetry and just check out the project, click here ) Begin code review . Too many lines, what to do? Hmm. LGTM? There’s a better way to review fast but ensure good code quality: One-click jump-to-def and hover over for docs. Save time and focus: Find refs globally… Read more

Toward a URL for every function in the world

What’s the best semantic and future-proof way to link to a piece of code? There’s been some interesting discussion about the right way , and it’s something we think about a lot at Sourcegraph as we build a better way for developers to discover and understand code. The consensus is that when you… Read more

Sourcegraph: the best way to read code just got better

Today, we’re announcing a new edition of Sourcegraph that makes it even faster and easier to answer your everyday programming questions. If you code in Go, check it out now . If you use another language, sign up for the beta  — we’ll have news for you in the next couple of weeks! If you’re new… Read more

Liveblogging GitHub Universe

Hi, we’re Sourcegraph, the code search engine for Go and Java that lets you jump to def and find refs across all your code on GitHub . You may remember us from such developer conference liveblogs as Gophercon , FOSDEM, and dotGo . This year, we’re excited to announce we’re liveblogging GitHub… Read more

GitHub Universe liveblog: “Open source for National Security”

Ian Lee of Lawrence Livermore National Laboratory talks about how LLNL is using, producing, and encouraging open source in government ( slides here ). Open source software and national security — two topics you don’t hear together too often. But there’s a lot of work in government agencies being… Read more

InnerSource and reaping the benefits of open source behind your firewall, a discussion at GitHub Universe

Engineering leaders from Bloomberg, Walmart Labs, Line, HP, IBM, and GitHub talk about open source inside enterprise (or “inner source”). We paraphrase the key points here. “InnerSource” is a new term for something that programmers have been doing for a long time. It’s about openness, transparency… Read more

5 short stories from open source: pains in gains

Lynn Langit, Cloud & Data Architect Director of Teaching Kids Programming ( slides ) She tells the story of Matt, a fifth grade history teacher who wrote some bacon-related code in Swift Lynn’s daughter has been coding since age 8 and taught Matt how to code. Matt now teaches Java to 8th graders… Read more

GitHub Universe liveblog: Alvind Salehi, Federal Government

The federal government has embraced open source software. Earlier this year, they released the Federal Source Code Policy. When they released it back in March, they received some of the highest number of comments in history, thanks to GitHub. They received around 2,000 public comments. The federal… Read more

A conversation with Bret Taylor, CEO of Quip, at GitHub Universe

A concise recap of a “fireside chat” with Bret Taylor, co-creator of Google Maps, CTO of Friend Feed, CEO and co-founder of Quip. Q: First computer? A: Compact Portable, about the size of a suitcase. The lid flipped out of the keyboard. Had one game, which took up all disk space. Every time, he had… Read more

GitHub Universe liveblog: CEO’s keynote

GitHub’s invention — wasn’t invented invented in a vacuum. An evolution of great ideas from the past (like Henry Ford, Isaac Newton, etc.) GitHub didn’t invent the pull request. So what was the “big idea” for GitHub? It boils down to tools and people. Our key insight was that “developers are people… Read more

Why we open-sourced our uptime monitoring system

About a month ago, Sourcegraph released Checkup , an open-source , self-hosted uptime monitoring system written by Matt Holt . Following its release, a lot of people asked us how we were using Checkup at Sourcegraph. Today, we’re sharing our public status page , powered by Checkup, and laying… Read more

What we can learn from the IBM System/360, the first modular, general-purpose computer

At Sourcegraph , we believe building for the future requires learning the lessons of the past. This is the first in a series of blog posts that cover historical anecdotes about software engineering that have inspired us as we build tools for the modern developer . We’re sharing these, because we… Read more

Thyme: a simple CLI to measure human time and focus

It’s like a CPU profiler, but for your productivity rather than your machine’s Do you ever think about how to make yourself a more productive programmer? At Sourcegraph , this is a question we think about every day. Our entire mission is to make your life as a developer easier and more efficient… Read more

How to make your open-source project thrive

Andrey Petrov ( @shazow ) spoke at the Sourcegraph office about lessons learned from his successes and “many failures” (his phrase) creating open-source projects. Andrey is author of the popular urllib3 library ( explore urllib3 on Sourcegraph ) and several other popular open-source… Read more

Announcing Checkup: simple, self-hosted health checks

Today, Sourcegraph is excited to announce Checkup , a simple tool that lets you easily create distributed, self-hosted health checks and status pages. The Checkup status page works out of the box Monitoring uptime is a crucial part of running any web service. It lets you sleep well at night… Read more

Building a product, one user interview at a time

From the very beginning at Sourcegraph , it’s been our goal to build a product so helpful that people could never go back to programming the old way. Sourcegraph helps developers discover and understand code, and to address such a complex need requires us to deeply understand our users. We’d like… Read more

IPFS: The Permanent Web

Juan Benet ( @juanbenet ) spoke at the Sourcegraph Hacker Meetup about his project, “IPFS: The Permanent Web” ( slides and video ). IPFS is a bold attempt at evolving the Internet’s infrastructure. Here’s how Juan describes it to Sourcegraph : IPFS is a global, versioned, peer-to-peer file… Read more

5 easy ways to start contributing to Docker using Sourcegraph

There are many benefits to contributing to a popular open-source project like Docker: You earn recognition for improving a project used by many people. You get to collaborate with other amazingly smart people in the open-source community. You become a better programmer yourself through the process… Read more

Appdash, an open-source perf tracing suite

Every developer knows they should instrument their app to identify perf bottlenecks, but it’s hard to actually get around to doing it — especially when you’re focused on shipping the latest and greatest features of your site. Today we’re announcing Appdash, an open-source multi-language distributed… Read more

Browse & review code on GitHub like in an IDE, with the Sourcegraph Chrome extension

Wouldn’t it be awesome if you could review, browse, and search code on GitHub as though you were in an IDE, with jump-to-definition, doc tooltips, and cross-references? We think so. That’s why we built the Sourcegraph Chrome extension for GitHub. Update (June 22, 2016): Added support for pull… Read more

GitHub Universe liveblog: Clarence Wardell, U.S. Digital Service

Innovation fellow of the U.S. Digital Service, a.k.a. the “president’s startup.” His time as innovation fellow started in 2014, right around the time the conversation around law enforcement and Ferguson was coming to a tipping point. Big demand for better data around policing, especially with… Read more

Getting started with Sourcegraph

Use Sourcegraph to discover and understand code better There’s a gold mine of code available to programmers, but choosing the right library and understanding how to use it can be tricky. We created Sourcegraph , a fast, semantic code search and cross-reference engine, to help developers like you… Read more

How tech startups test, organize, and review their code

Building software is hard. We hosted a casual dinner here at the Sourcegraph office in downtown San Francisco for ten developers from leading startup software teams. At the dinner, the teams shared a behind-the-scenes look at their processes (and frustrations): testing, deployment, and code… Read more

The pain of code review: how different teams manage, scale, and perform code reviews

We invited ten developers from leading tech startups around the Bay Area to join us for an “off-the-record” dinner to discuss the practice of code review (and what we want in an ideal code review process). Below is a wrap-up of the salient points from our dinner. Given the off-the-record nature of… Read more

The Sourcegraph developer release: A better way to discover and understand code

Today we’re excited to announce a step toward giving every team the power to build better software — the developer release of Sourcegraph , the fast, semantic code search and cross-reference engine. As developers, we always wanted a better way to discover and understand code: Why can’t your code… Read more

Google I/O talk: Building Sourcegraph, a large-scale code search & cross-reference engine in Go

This was originally a talk at Google I/O 2014 . Check out the slides and YouTube video . Thanks to the Go team for inviting us! What is Sourcegraph? Sourcegraph is a large-scale, multi-language code search and cross-reference engine that indexes hundreds of thousands of open-source… Read more

Why vacation at tech companies should be mandatory: better code, happier people

Can a policy that banks use to combat insider fraud also make tech companies produce better products and happier employees? Sure. At Sourcegraph , our mandatory vacation policy requires everyone to completely disconnect from work for at least 2 weeks each year — no exceptions. Photo credit… Read more

The Sourcegraph Test: 12 more steps to better code

Do you use the best tools money can buy? We ask ourselves that a lot at Sourcegraph . It’s one of the questions in The Joel Test , Joel Spolsky’s classic 12-question benchmark of your team’s software engineering practices. Since he published the test in 2000, the “best tools money can buy” have… Read more