5 ms·
Sourcegraph CEO here. This is the same underlying code search offered for a while by Google Cloud Source Repositories for private code, and it’s cool to see thi
by sqs 7y ago
Sourcegraph CEO here. This is the same underlying code search offered for a while by Google Cloud Source Repositories for private code, and it’s cool to see this usable for Google’s own open-source code, too.
If you want to get universal code search for your own (private) code on any/all code hosts, Sourcegraph is easy to set up internally (self-hosted Docker install) at https://docs.sourcegraph.com/ https://docs.sourcegraph.com/. Or you can get code search for all OSS projects at https://sourcegraph.com/search https://sourcegraph.com/search. More general info at https://about.sourcegraph.com https://about.sourcegraph.com.
Lots of Xooglers and current Googlers use Sourcegraph, too. Just mentioning Sourcegraph because I’ve seen several other folks mention us in the comments (thanks!).
- monadic2 7y agoWhat’s the code licensed under? It’s not clear from your site at first glance.
- sqs 7y agoIt's open core (Apache 2 + some non-OSS parts for enterprise features). All of the code is public and we develop in the open at https://github.com/sourcegraph/sourcegraph https://github.com/sourcegraph/sourcegraph.
- dragonsh 7y agoSourcegraph only support git repository so it's not very useful for enterprise with mercurial, svn or other distributed version control systems. There is another open source application for code search opengrok [1] (it's completely open source unlike sourcegraph and supports multiple version controls beside git). Take a look. It's easy to install and operate on bare metal, cloud and containers, instead of convoluted sourcegraph way of kubernetes or docker. [1] https://github.com/oracle/opengrok https://github.com/oracle/opengrok
- aurelianito 7y agoYou always can bridge to git from svn and mercurial. It is almost seamless, and after generating the git repository everything will work.
- dragonsh 7y agoMany organizations don’t use or want to use git. This is another convoluted solution, trying to fit a square peg in round hole. Another reason not to use sourcegraph is it’s proprietary (with some open source parts), unlike opengrok fully open source.
- judge2020 7y agoIs the sourcegraph "open core" unlike how redis is "open core", eg. The main code is open but there are paid, closed-source modules and extensions?
- sqs 7y agoSourcegraph is open core like how GitLab and VS Code are open core. You can run "Sourcegraph OSS" and get limited features, or you can run Sourcegraph (see https://docs.sourcegraph.com/#quickstart https://docs.sourcegraph.com/#quickstart) and get all the features, but you need a license key when you hit the user limit.
- shoeffner 7y agohttps://github.com/sourcegraph/sourcegraph/blob/master/LICENSE https://github.com/sourcegraph/sourcegraph/blob/master/LICEN... says: "LICENSE.apache (Apache License) applies to all files in this repository, except for those in the enterprise/ and web/src/enterprise/ directories, which are covered by LICENSE.enterprise." Thus, Apache 2.0 and some custom license requiring you to accept the terms, have a correct number of seats, and does not allow you to "copy, merge, publish, distribute, sublicense, and/or sell the Software." I am not sure what all of this means, though. Better check out the licenses yourself :)
- voz_ 7y agoGreat product. Used it extensively at Uber.
- sqs 7y agoThank you! Any complaints/requests/other feedback? How could we make it better?
- escardin 7y agoYes! Publish a graphql schema that is parseable by apollo graphql please! I tried to use your API on my companies internal source graph setup and had to hand roll my API calls because of these errors.
- loicguychard 7y agoSorry to hear you this didn't work for you! I filed an issue on sourcegraph/sourcegraph, would you mind posting more details there about the errors you ran into? https://github.com/sourcegraph/sourcegraph/issues/8970 https://github.com/sourcegraph/sourcegraph/issues/8970
- voz_ 7y agoI'm at FB now and we have an internal code search. I apologize, I can't recall any feedback for sourcegraph.
- HiJon89 7y agoSeems like this is in the works already, but the boolean operators in OpenGrok are so intuitive and powerful. I use them every single day and the lack of support in Sourcegraph immediately disqualified it for us. For example yesterday I was looking for Dropwizard Managed classes not annotated with @Singleton so I did: Managed && !"@Singleton" (I'm omitting the fully-qualified class name for brevity) If I also wanted to look for HealthCheck classes I could update the query to: (Managed || HealthCheck) && !"@Singleton" I think it also helps that OpenGrok has a separate input for filtering file paths (completely splitting the "where" and the "what" parts of the query). And this file path search supports the same boolean operators. So if I want to narrow my search to two particular repositories I could put CrmSearch || AutomationPlatform into the File Path input. And because this input only handles file paths, I don't need to remember any special syntax. Whereas if you clump the entire query into a single input, then users need a way to tell you whether a search term applies to file paths or file contents.
- actionowl 7y agoI've looked at this a few times but never given it a go. Going to actually try it this week for $DAYJOB. One nice-to-have would be support for C, does the C++ extension work for C as well? Thanks!
- cforney 7y agoYes, the extension supports C, C++, and C#! Sourcegraph supports over 30 languages out of the box using our basic code intelligence (search based heuristics and ctags). Check out the recent release notes: https://about.sourcegraph.com/blog/sourcegraph-3.13#basic-code-intelligence-support-reaches-32-languages https://about.sourcegraph.com/blog/sourcegraph-3.13#basic-co... And how out of the box code intelligence works: https://docs.sourcegraph.com/user/code_intelligence/basic_code_intelligence https://docs.sourcegraph.com/user/code_intelligence/basic_co...
- actionowl 7y agoThanks for the info!
- zxienin 7y agoIs there a variant of this that integrates with IDE of choice?
- dnpp123 7y agoThanks. Sourcegraph seems better from my 1mn test ? Following this article https://bugs.xdavidhu.me/google/2020/03/08/the-unexpected-google-wide-domain-check-bypass/ https://bugs.xdavidhu.me/google/2020/03/08/the-unexpected-go... recently featured on HN, I tried https://cs.opensource.google/search?q=%2F%5E(%3F:(%5B%5E:%2F%3F%23.%5D%2B):)%3F(%3F:%5C%2F%5C%2F(%3F:(%5B%5E%2F%3F%23%5D*)@)%3F(%5B%5E%2F%23%3F%5D*%3F)(%3F::(%5B0-9%5D%2B))%3F(%3F%3D%5B%2F%23%3F%5D%7C$))%3F(%5B%5E%3F%23%5D%2B)%3F(%3F:%5C%3F(%5B%5E%23%5D*))%3F(%3F:%23(%5B%5Cs%5CS%5D*))%3F$%2F https://cs.opensource.google/search?q=%2F%5E(%3F:(%5B%5E:%2F... : no result https://sourcegraph.com/search?q=/%5E%28%3F:%28%5B%5E:/%3F%23.%5D%2B%29:%29%3F%28%3F:%5C/%5C/%28%3F:%28%5B%5E/%3F%23%5D*%29%40%29%3F%28%5B%5E/%23%3F%5D*%3F%29%28%3F::%28%5B0-9%5D%2B%29%29%3F%28%3F%3D%5B/%23%3F%5D%7C%24%29%29%3F%28%5B%5E%3F%23%5D%2B%29%3F%28%3F:%5C%3F%28%5B%5E%23%5D*%29%29%3F%28%3F:%23%28%5B%5Cs%5CS%5D*%29%29%3F%24/&patternType=literal https://sourcegraph.com/search?q=/%5E%28%3F:%28%5B%5E:/%3F%2... : 2 results !