444 points · by CAP_NET_ADMIN · 3y ago · 253 comments
Our licensing principle remains to charge companies while making tools for individual devs open source. Very few individual devs (or companies) used the limited-feature open-source variant of code search, so we decided to remove it. Usage of Sourcegraph code search was even more skewed toward our official non-OSS build than in other similar situations like Google Chrome vs. Chromium or VS Code vs. VSCodium. Maintaining 2 variants was a burden on our engineering team that had very little benefit for anyone.
You can see more explanation at https://github.com/sourcegraph/sourcegraph/issues/53528#issu.... The change was announced in the changelog and in a PR (all of our development occurs in public), and we will have a blog post this week after we separate our big monorepo into 2 repos as planned: the 100% OSS repo for Cody and the non-OSS repo for code search.
You can still use Sourcegraph code search for free on public code at https://sourcegraph.com and on our self-hosted free tier on private code (which means individual devs can still run Sourcegraph code search 100% for free). Customers are not affected at all.
It's no wonder, that the usage of OSS version was pretty low, when few were able to build it and even if they managed that, the resulting application was broken every few releases.
Both VS Code and Chromium are easy to build, due to their nature and popularity, they are available prebuilt from many sources. I would install "unofficial" Chromium build from my distribution's repository, I wouldn't keep my code in unofficial Sourcegraph build from some random person on Github. Comparing them is rather unfair, but there's another issue that stopped OSS adoption.
For a long time, official Sourcegraph Docker image came with a 10 seat free license, which suited many people and they weren't looking for alternatives like OSS build.
I would argue that announcing license change and closing of your product as a small block in change log file or when someone mentions the problem in Github Issues is not adequate for such a change.
Not using open-first principles, restricting the product by using enterprise only plugins, which others mentioned under this post, not providing open source builds and changing license without preceding announcement, while previously using open source terminology for some feel-good free marketing leaves a bitter taste. Especially with so many companies doing this right now due to interest rates.
https://github.com/sourcegraph/sourcegraph/issues/43231 https://github.com/sourcegraph/sourcegraph/issues/43203 https://github.com/sourcegraph/sourcegraph/issues/6790 https://github.com/sourcegraph/sourcegraph/issues/6783
[1]: https://github.com/sourcegraph/sourcegraph/discussions/54589
I don't doubt that your perception of the OSS version's lack of success is accurate, and it is definitely easier to close off the source, but at the same time the outcome of this is that one funnel into it is closing with the calculation that the effort spent to keep that funnel open wasn't worth the people coming in through it.
The other possibility, and one that I subscribe to (not that it isn't self-serving) is that the funnel was never open enough to see success in the first place.
Stop using the term Open Source. It's not open source if you apply restrictions like this, it's pretty easy to see that you're being disingenuous. These licenses are not OSI approved.
> other definitions do exist that don’t meet OSI’s standards. The term doesn’t belong to any one organization.
And all attempts to redefine what open source means fail, because both FOSS camps OSI and FSF/GNU as well as everyone in between see it for what it is: attempts to muddy the water in order to deceive users and customers. Your software is either FOSS or it's not, there is no scale here, it's a social contract. Just because there are a bunch of ambiguous licenses that no-one knows what to make of, doesn't mean there are two or more concepts. There's only one concept for both "open source" and "free software" and the difference is philosophical.
I'm no fan of the OSI, but language policing usually turns out to be correct. There are other definitions of open source - the free software definition, the DFSG - but in practice they're all close enough that the differences don't matter.
> OSI didn’t invent the term open source, and like it or not, other definitions do exist that don’t meet OSI’s standards.
Very few. I don't think there's any nontrivial software that doesn't meet the OSI's standards but is recognised as open-source by anyone who isn't a) a paid shill or b) a self-important provocateur who wrote it.
> I don’t understand the confrontational stance either, with code being offered to individuals. That far exceeds what most companies do, in terms of serving the open source community, no?
Companies are trying to salami-slice away the rights users expect from open-source software. The response to that has to be a firm line in the sand.
'Open source' generally gets read to mean 'available under an OSI or OSI-like license', and 'free software' as 'available under the GPL or a GPL-like license' IME - if the license is commercial only but the code's still freely -readable- albeit not freely -runnable- then 'source available' is clearer.
(note that sqs clarifies elsewhere in the thread that 'open source' was being used to refer to the stuff that's (still) Apache 2 licensed, not the source available parts)
They're not inherently bad licenses but they aren't open source.
No, that's "source available." If there is no open source license, then it is not open source.
(I do understand that Solargraph is now using a proprietary enterprise license, so this comment is directed at the OP mentioning "OSI approved" licenses, not at Solargraph's new license.)
* it ain't trademarked.
The challenge I had with Sourcegraph is that it's out of reach of developers working on personal projects. There isn't a hosted plan, and for my projects I can't easily open source them due to my employer.
I was really excited when the Sourcegraph App was released, since it allowed me to give Sourcegraph a try on my project without going through the complex self-hosted setup. I went as far as getting scip-clang working with my Bazel-based project, and then tried out the docker-compose setup on my home lab.
Now that code search was removed from the app, and this change, I'm concerned that I won't be able to use Sourcegraph for my personal projects in the future.
This is a missed opportunity. I think individual developers using products for personal projects are powerful advocates, since those developers may convince their employer to purchase the product. If I could I'd gladly pay, but I'm just one person and can't justify $5k/year.
We have lots to reflect on given the feedback here on HN. We were honestly a bit blindsided by the number of people who appear to be using open source Sourcegraph, or who really wanted to use it but found the process too difficult. Part of this is because we had a zero telemetry policy for the open source distribution. Perhaps that was a mistake in hindsight, but introducing telemetry there would've been another can of worms!
Now that the usage is more visible, it's actually kicked off a lively internal discussion. We're going to take some time to gauge the size of the user community and figure how we can best support it. Aside from individual use being free (still the case) and making deployment more straightforward (through something like code search in App), are there other things we can do to make it easier to adopt? Sorry about the confusion here, we should have handled this better. But the silver lining is we realized there were a lot of users of Sourcegraph that we didn't know about and we're now discussing how best to engage and support you all. I do hope you'll take the chance to pop into our Discord and say hello and continue with feedback that can help us make the best decisions for our users.
I like paying for things that I use and bring me value, but at the moment Sourcegraph is a hard sell due to high cost compared to small company size and being based outside of Western Europe and US.
I really wish the enterprise stuff was available to the single user case like mine. Everything past v4.3.1 is hot garbage, as you guys really nerfed it for non-enterprise users ever since you removed "showEnterpriseHomePanels" among a few other things. I regrettably can't upgrade to anything newer because of that.
I would LOVE to have the ability to pay you guys say, $100 a year or something reasonable for just a private onsite enterprise license for one person -- myself. I continue to advocate for your products in all the enterprise contracts I work as that's what I'm most familiar with and tinker with when I work on my own personal stuff on my own free time.
I think it would be great to just have all those features for one user, and for a reasonable yearly fee for a single developer to be able to afford.
If you guys are concerned about being ripped off -- For example, some company buying this "single user enterprise license", I don't think they would if you limit it to one admin user. No company is going to risk sharing creds for a superuser account / keys to the kingdom, and if they do, they are some fly-by-night company with no sense of security that was never going to give you guys money anyway.
That's my two cents.
tl;dr: I can care less if it's open source or not. I just care that enterprise is affordable to the home user and that I can still run it on premise and in a semi-airgapped network environment.
From my prior code inspection, I recall seeing OSS code making regular “pings” back to Sourcegraph even when telemetry options are disabled by users. Survey toasts also appear to send information to HubSpot when answered.
Are you sure this isn’t just a way for you to crack down on license abuse?
The response was basically "sorry, we're too busy".
Your business model is fascinating.
(I Don like the news itself obviously but the delivery was good)
[0]: https://cloud.google.com/blog/products/ai-machine-learning/g...
docker run --add-host=host.docker.internal:host-gateway --publish 7080:7080 --publish 127.0.0.1:3370:3370 --rm --volume ~/.sourcegraph/config:/etc/sourcegraph --volume ~/.sourcegraph/data:/var/opt/sourcegraph sourcegraph/server:5.1.2
docker run --rm=true --publish 3434:3434 --volume $PWD:/data/repos:ro sourcegraph/src-cli:latest serve-git /data/reposhttps://github.com/livegrep/livegrep
Demo at https://livegrep.com/search/linux
We used it at Stripe and it was quite popular; often, searching even a single repo was faster on livegrep than with ripgrep locally.
A post reviewing it: https://www.alexdebrie.com/posts/faster-code-search-livegrep...
A post by its creator, nelhage, on its impact: https://blog.nelhage.com/post/reflections-on-performance/ and another on its architecture: https://blog.nelhage.com/2015/02/regular-expression-search-w...
The recent rewrite of github search has probably made sourcegraph irrelevant. If you may recall, original github search used almost the most horrible algorithm possible. It dropped all punctuation and spacing and just searched for identifiers. No patterns allowed, no quoting allowed. One of the only meta-arguments was filename:xyz.
Now that github has improved its basic search functionality, sourcegraph might be doomed.
I used sourcegraph at Lyft which (at the time) had unlimited money to waste on software tools, and installed the open-source version at Databricks but nobody cared.
It only makes it irrelevamt if all your code is hosted on Github.
I'm quite tired of Github-proprietary solutions being hailed as the "industry norm." Or vendors like shipping products and integrations that only work with Github. Git is a decentralized protocol; please treat it like one.
It uses a temp directory, and deletes it when you close your editor.
Having it as button in browser seems cool but also horribly insecure...
Their default search still sucks, IMO. But the one I mentioned is comparable to Google’s internal CS.
In some ways it’s even worse now, because it seems to only build an index of the repository on the first search, when I need a result now.
That will load a web version of VS Code, and you can then use the search from there.
1. GitHub isn’t free, especially for large private organisations 2. Source graph has much better search functions compared to GitHub
For large private organizations they are paying already so more likely to use built in search than buying a new product.
My understanding is that GitHub's on premises version doesn't have any plans to include the new code search functionality.
One person finally created a working release train on github and was releasing OSS containers, Docker Hub reports it as 10k+ pulls, which is a lot for unofficial image.
I tend to stay away from any 3rd party tool that's not really a main part of infrastructure and requires sales contacts. It's wasting my company time to deal with sales when it comes to a few licenses, just give me a number input and buy button. I also lost some confidence regarding Sourcegraph, as it seems they change their direction, pricing and rules multiple times per year
We'll probably see more of these faux OSS projects who hoped for some community/network effect from being OSS to translate into either strong donations or considerable uptake of their enterprise/cloud/managed versions go this route.
To be clear, fully support charging for and paying for SaaS. Would just like be able to know what is in front of me when making build/buy decisions.
I've even found a page still mentioning the OSS version and telling you how easy it is to fire it up.
Nice. How to get free marketing by strapping Open Source to your product and writing a bunch of announcements.
A few months later and 70 registered users, I have a total of 3 users who used it a few times.
I've done a demo and created documentation, 80% of the developers at $MY_COMPANY used Sourcegraph Code Search at least a few times in the past month, some of them are doing a dozen searches per day.
My company lives in code search. Most bug fixes and small enhancements start by investigating code search, and clicking a link from code search to start editing the file.
However it’s not that bad because we work mostly on short lived research projects and it’s not that much to reuse. Public code search and ChatGPT are used much frequently.
Why are companies isolating themselves from smaller clients?
Of course that skips the bigger picture like more people knowing and using your products and being happy with them leads to more champions for them doing your sales and marketing work for you, which can create lots of revenue in the long term; but it's pretty much impossible to quantify.
No wonder my enterprise is automatically kicking people off when they don’t use it.
In every tier there are $49/month "core" users (basic dashboard viewing, no editing, no APM, no monitoring, no tracing...)
In the "Standard" tier you have $99/month "full" users, but you're limited to 5 total users, no SSO, and AFAIK very basic support.
In the "Pro" tier you have $418.80/month "full" users
In the "Enterprise" tier you have $658.80/month "full" users
No wonder people is paying for core users and then juggling generic full users. Although they limit you at 3 concurrent sessions at the same time, and monitor that, and will contact you if you login from different IPs and browsers to the same users.
The most interesting part for me is Pixie... but you can do that for free.
It seems like the author of Sourcegraph OSS containers announced that his release train is now dead
They kept trying to push this "campaign" feature on us, which is an overly-complex auto-refactoring tool that couldn't even support our non-proprietary, well-known build system. For the cost of their license, we instead hired two developers for code refactors, who then went on to make other tooling, and we didn't need to hire someone to babysit their crappy service integration.
I would not say that they had found their niche when speaking to us. Perhaps it has gotten better.
We recently released a new indexer scip-clang (https://about.sourcegraph.com/blog/announcing-scip-clang), which we've used to successfully index large codebases like Chromium. The indexer relies on a JSON compilation database (same as our older indexer lsif-clang) which is easy to produce from CMake, Bazel, Meson, Make etc.
We've also added support for cross-repo code navigation for C++ recently. (https://about.sourcegraph.com/blog/c-cpp-cross-repo)
I'm unsure what the expectation is here. I'm allowed to say we had a poor experience, you should be allowed to say how you think you're addressing it.
But you (and child) comment made me realize that I don't remember the terms of the proposal, whether it was per year or for 2 years. So it might have been a 1:1, not 1:2.
In the end, their product was just completely insufficient for our needs, and it was clearly just gluing open source tools together. The part we couldn't do as well was the front end, and they clearly put a lot of effort into it. It looked and worked nicely. But that didn't help us when they couldn't parse the code to populate it.
The problems we encountered were that they could not rewrite the targets in our build system for the automated refactoring, and any missing include path at all would cause the clang-based tooling they were using to barf.
We just asked ourselves why we would spend so much money on a product when we still had to solve all of the fundamental problems ourselves. We liked the UI, but it wasn't worth the insane license fee.
> We remain committed to Zoekt, the open source code search engine, and will continue to upstream changes to it.
https://github.com/sourcegraph/zoekt
> The source code will remain publicly available.
> Individual devs will still be able to use Sourcegraph for free on public code at sourcegraph.com and within our self-hosted free tier on private code.
> Very few individual devs or companies used the limited variant of code search that was open source. The vast majority (99.9%+) used the enterprise product. Maintaining two variants going forward was a big burden on our engineering team that had very little benefit for users.
It also says they offer a free self hosted version for individuals, but I couldn’t find that on their site.
At some point, one individual on Github managed to get it working and his images got 10k+ pulls on DockerHub. That's hardly "nobody". Also, some people removed telemetry from OSS version so Sourcegraph didn't even know that anyone is using it.
Also, they were open-closed-open-closed in the last 5 years.
Their website is a mess, even employees on github are providing contradicting information. Original commit message that relicensed bunch of stuff had errors in it regarding what exactly will be closed source now.
P.S. Started a discussion regarding the Homebrew package, but pretty sure it's canned: https://github.com/sourcegraph/sourcegraph/discussions/54589
As someone who builds things, it feels like poor craftsmanship to put obstacles in front of your users and limit the extent to which they can use your work.
It also feels like decisions to hamper how people use a product are driven purely by greed.
Let's imagine a world in which Sourcegraph were completely free software. They would probably still have enterprise customers pay them to securely host Sourcegraph on-premise. They wouldn't be able to charge per seat. They would have to make sure their product was cheap enough that their customers wouldn't save a ton of $$ by hiring engineers to maintain Sourcegraph on premise themselves.
I am curious if they (or anyone else running an open core business) has estimates for:
1. How many customers they would lose if they went fully free.
2. How much revenue they would lose if they went fully free.
Building free software and charging people to host it can be the foundation for a sustainable business, but it's unlikely to give VCs the kind of outcomes they want from a successful investment.
To be honest, I think it's fine for infrastructure to be closed/proprietary. There are good reasons to do this if you are writing programs for which security is important - releasing your infrastructure code freely gives attackers a lot of ammunition to work with.
If we believe in the power of automation and in building high quality software, it is possible to build free software that:
1. Is easy for you to deploy and maintain securely on customer infrastructure.
2. Requires very little operational overhead from its you as the host (in terms of support).
3. For which the infrastructure code is proprietary.
This can lead to a very solid business.
Why don't we see more businesses like this?
I looked at the Debian code search [1] in the past, but for some reason thought it required a bit too much effort and didn't complete my investigation of it. Though [2] looks pretty approachable.
Sourcegraph mentioned Zoekt [3], but I am not sure how usable it is. If it was pretty good, why did Sourcegraph OSS exist?
Finally, from all the discussion how Sourcegraph OSS was very behind in the past few years, I guess there is no serious plan to fork it?
Edit: GCS release [4] seems to have been open-sourced without a frontend.
Edit2: Livegrep [5] and Opengrok [6] were recommended higher in the thread. Quite excited to try them out but if someone has working Docker Compose configs, I would be very thankful for the head start.
Edit3: there is also Eureka [7]. Seems less powerful but easier to deploy.
[1]: https://github.com/Debian/dcs
[2]: https://github.com/Debian/dcs/blob/main/howto/building.md
[3]: https://github.com/sourcegraph/zoekt
[4]: https://github.com/google/codesearch
[5]: https://github.com/livegrep/livegrep
[3] used to be a Google open source project as well, but it fell out of maintenance, and Sourcegraph took it over. It powers most of the basic regex/literal search in Sourcegraph.
Mozilla's code is searchable in Searchfox (https://searchfox.org/) which uses the indexer from Livegrep, combined with their own Git indexer and language-specific cross reference databases.
OpenGrok (https://github.com/oracle/opengrok) is also rather well known, but I have found it to have a slightly worse UI than alternatives.
Let's see if we get the same amount of upvotes their post got when they open sourced the thing.
Devs have gotten drunk on devtool sugar imo.
fl() { # find line
rg "$@" . --color=always --line-number --no-heading --smart-case |
fzf --preview-window='top:60%:+{2}+3/2' \
--preview='bat --style=full --color=always --highlight-line {2} {1}' \
--delimiter=':' -n 3.. \
--bind "enter:execute(vim {1} +{2})"
}
Obviously not the same, but I often find it enough. Short demo https://imgur.com/a/hsyINjSThe hard case is this simple extension of your example: I found the definition of X package in Nixpkgs. Now how do you find all the users of X, across, say, 10 other repositories? Or all of GitHub? That isn't theoretical; if you make a backwards-incompatible API change to a NixOS module, you might want to know that. So suddenly you need a lot more things in place to make this work. Now change X so that it's something like an RPC interface defined in protobufs, and then change your query to "What clients are using this interface and what servers define it", and keep in mind these can all be in different languages in different repositories. That is not so easy with Ripgrep, but tools like Kythe or SourceGraph can handle them with far, far greater ease.
Also, for many cases, you actually need language aware search and the search engine needs to understand more structure than just utf8 bytes to answer you. Ripgrep won't help you find the definition of that fucked up thing that was defined by a template instantiation that was hidden by a macro in C++ from a header that was generated at build time, that you are only looking up because it was barfed out from some huge stack trace that came from production. SourceGraph can answer that instantly with no false positive (assuming you have SCIP indexing as part of your build system.)
Yes, ripgrep is nice and I use it when writing nixpkgs patches all the time. But something like SourceGraph, Kythe, OpenGrok etc are all really a completely different class of tools.
And the "X gigabytes" fact isn't really that impressive when you realize all the weight is in the .git/ directory of Nixpkgs; ripgrep will instantly filter that out and never even search it, so it isn't actually searching a working set of that size. The actual pkgs directly is in contrast about 300MB. It still is crazy fast though, no doubt.
> This blob took too long to generate. But you can view the raw file.
I used it quite a lot before completely moving to Emacs.
Sourcegraph appear to have had one:
https://github.com/sourcegraph/sourcegraph/blob/main/CONTRIB...
https://sourcegraph.com/github.com/sourcegraph/sourcegraph/-...
It includes a grant of copyright licence so I guess this is nailed down.
The interesting one is he second image which filters by code contributors that have contributed more than 500 lines of code churn.
Note, I'm not taking into consideration if code contributions were merged or not, just that somebody created a pull request/commit.
In the ecommerce world there is Magento, Shopware, and Spryker. Magento is open-source and massive. Shopware is open-source and very good and reliable. And then there is Spryker a closed-source platform which is very good from a product point of view. I feel if you look at the product development from those three Spryker is far ahead of the open-source options.
I think we all like the benefits of grabbing a library/tool and using it for free for personal use or when we're starting out and can't really afford to pay so want things to be open-source. But I really think the future is source-available that mixes the ability to use something for free but when they have the money to require a commercial license. This is why I choose to go with the Business Source License - which allowed for additional grants as well as allowing free use for non-production uses. I added in an additional grant for if they're generating very little revenue. As a small independent developer who is developing a billing system it seems fair that people generating revenue start to pay for a license. While it allows those who are just starting out to use it for free and pay when they start making money. As I grow I'll be increasing the amount the additional grant allows. For me this seems the best of both worlds. One where those who can't afford can use it for free and those who can pay help fund future development.
We keep seeing companies going from open-source to a source-available approach for a reason.
[1] - https://github.com/billabear/billabear/blob/main/LICENSE
"But Linux" when the talk that open-source doesn't appear to be a substainable model is like using Zuckerberg as an example as dropping out of college. Lots of people drop out of college and never achieve anything. There are always going to be rare examples that can achieve something.
And the fact the open source community only appears to have one example of how you can build a profitable large business off the back of open source - Red Hat. (Who is currently closing things down to remove competitor.) Really kind hits home that it's a very bare existance for open source projects.
But you’re right, no one uses Apache, nginx, postfix, bind, dhcpd, ntpd, spamassassian, kubernetes, go, python, c, busybox, irc, email, sip, php, react, … and they’ll never last.
Anybody know of one? Specifically interested in the "runs scripts at login" aspect.
Got confused with SourceTrail C++ code viewer made by yet another Google intern, Eberhard Gräther of CoatiSoftware.
https://web.archive.org/web/20211115131149/https://www.sourc...
It can be. You can release under a "source available" license barring it from being used (even compiled), derived, incorporated into other works, making it basically "for eyes only, or we sue you to oblivion".
Many people consider licenses as window decorations, but they are not.
So if anyone wants to put a past release online they are free to do so (unless there are parts of the code that were restricted before).
It would be prudent to remove branding where possible but that's mainly a precaution.
Many people lack this knowledge from my experience.
Personal use doesn't free you the obligations GPL brings, for example.
There is a lot of competing technology now, from GitHub’s improved search to new open source LangChain and LlamaIndex support for better document chunking of source code in several languages.
what is it with companies making things closed source?