Sourcegraph is used to search, explore, and understand code
The Sourcegraph project, which develops an engine for navigating through source code, refactoring, and searching code, starting with version 5.1, abandoned development under the Apache 2.0 license in favor of a proprietary license that prohibits replication and sale, but allows copying and modification during development and testing.
For those unfamiliar with Sourcegraph, it's a code search and code intelligence tool that supports all major programming languages. It indexes and semantically analyzes large codebases, making them searchable across commercial, open source, local, and cloud-based repositories.
Searching can be implemented across various repositories and code hosting platforms. Searches can be literal, regular expression, or structural. Structural search syntax is language-aware and handles nested expressions and multi-line declarations better than regular expressions.
Sourcegraph changes license
Originally, the release notes for Sourcegraph 5.1 stated that the open edition of Sourcegraph had been removed in favor of the Sourcegraph Enterprise license . Since then, the text has changed to indicate that some Sourcegraph products have been removed and the licenses for search-related components have been updated.
As of 5.1.0, Sourcegraph's limited OSS subset has been removed and the code search OSS code has been relicensed
At the same time, components such as plugins with integrated development environments and Cody AI Assistant were left in the repository under the Apache 2.0 license, and their development continued under an open license as part of the main repository of the proprietary project.
Sourcegraph also promised to publish a blog post explaining the reasons for the license change , citing a contributor's response in its bug tracking system prior to that publication.
It should be noted that Sourcegraph's licensing model will continue to focus on selling products to companies and offering open source tools to individual developers. The open community edition of Sourcegraph was not well adopted among developers, and 99,9% of the time, users were using a different version of Sourcegraph Enterprise.
Furthermore, parallel maintenance of two related products, one of which is not in demand, is recognized as inconvenient and a waste of developer resources. After the license renewal, the code remained publicly available (but under a proprietary license), as did the development process.
The Sourcegraph developers will also remain involved in the development of the open-source search engine Zoekt and will continue to drive changes to this project. As before, free versions of Sourcegraph Enterprise are available for individual developers: for open-source projects, you can use the sourcegraph.com cloud service for free, and for working with closed-source code, you can install Sourcegraph Enterprise on your server using a free pricing plan.
The community-requested Cody AI assistant's community edition will remain under the Apache 2.0 license. Currently, Cody's code resides in Sourcegraph's main repository, but it will soon be moved to a separate repository. This change can also be seen as splitting Sourcegraph into two separate products: a proprietary code search engine and an open-source, intelligent coding and coding assistant (Cody).
The Sourcegraph engine can be used as a platform for reviewing and browsing source code hosted in Git repositories. You can parse arbitrary function calls and jump to where they are defined, view other calls to these functions in the code, view the change history, function-related discussions, documentation, and error messages. Sourcegraph also provides flexible link searches and tooltips for using various objects.
Finally, if you are interested in learning more about this , you can find the details at the following link.