TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Tell HN: GitHub is blocking search unless you are logged in

131 点作者 nancyp超过 1 年前
Sign in to search code on GitHub. Before you can access our code search functionality please sign in or create a free account.

25 条评论

midchildan超过 1 年前
<i>It&#x27;s not only code search that is affected. Issue and pull request search are affected as well.</i><p>Here&#x27;s a screen recording of that happening:<p><a href="https:&#x2F;&#x2F;imgur.com&#x2F;a&#x2F;BT6uRIe" rel="nofollow">https:&#x2F;&#x2F;imgur.com&#x2F;a&#x2F;BT6uRIe</a><p>It&#x27;s been quite a while since GitHub started gating code search behind a login. However, they recently started gating other types of search as well. The worst part is, you don&#x27;t notice it immediately for two reasons. First, it doesn&#x27;t happen on all repositories. I didn&#x27;t experience this yet with NixOS&#x2F;nixpkgs for example, possibly because the high volume of activity going on there prevented the switch. Second, the search results do show up right after you hit the search button. However, it shows up a login screen as soon as you start to navigate around the search results. To me, I can&#x27;t help but feel like they&#x27;re testing the waters by not making it immediately obvious that this is happening.<p>The inconvenience doesn&#x27;t stop there. As you can notice from the screen recording, once you get shown the login page, GitHub will continue to show the login page even if you hit the back button. On top of that, the search query is sometimes not included in the URL, making search results difficult to share.<p>I get GitHub wanting to require logins for code search, since it takes up computing resources. However, there&#x27;s something to be said about gating search for issues and pull requests of open source projects without the project maintainers being notified.
bhaney超过 1 年前
This has been the case since the new code search replaced the old one ~9 months ago. The new code search is more resource intensive so Github chose to only make it available to users. I agree that it sucks to not have code search available when logged out, but it&#x27;s not a new change and I don&#x27;t think it was done with malicious intent.
评论 #39332450 未加载
评论 #39332368 未加载
评论 #39335734 未加载
评论 #39329375 未加载
评论 #39326427 未加载
mdaniel超过 1 年前
Despite their shitty rug-pull &lt;<a href="https:&#x2F;&#x2F;github.com&#x2F;sourcegraph&#x2F;sourcegraph&#x2F;pull&#x2F;53345">https:&#x2F;&#x2F;github.com&#x2F;sourcegraph&#x2F;sourcegraph&#x2F;pull&#x2F;53345</a>&gt;, I do really like Sourcegraph and one doesn&#x27;t (currently?!) need to be logged in to use it: <a href="https:&#x2F;&#x2F;sourcegraph.com&#x2F;search" rel="nofollow">https:&#x2F;&#x2F;sourcegraph.com&#x2F;search</a> and they have a handy rewrite pattern such that one can just plug the repo path into the URL for quick searching e.g. <a href="https:&#x2F;&#x2F;sourcegraph.com&#x2F;github.com&#x2F;JetBrains&#x2F;intellij-community" rel="nofollow">https:&#x2F;&#x2F;sourcegraph.com&#x2F;github.com&#x2F;JetBrains&#x2F;intellij-commun...</a>
评论 #39332458 未加载
snailmailman超过 1 年前
I’ve been running into this too and it’s very annoying. Although I don’t think it’s particularly new either.<p>Just feels like an unnecessary step. Sure I have an account and can log in, but why? I just want to know which file has X function, so i can read the implementation. I don’t want to have to download the repo <i>or</i> sign in.
评论 #39324253 未加载
评论 #39326402 未加载
评论 #39326274 未加载
评论 #39324384 未加载
评论 #39324104 未加载
mathfailure超过 1 年前
And it&#x27;s not blocking search just for non-logged users, but also for users whose accounts got &#x27;flagged&#x27;.<p>My account got flagged.
huhtenberg超过 1 年前
They required to be logged in for the <i>code</i> search for years now. The rest (repos, issues, etc.) is still searchable as is. At least where I am at.
akkartik超过 1 年前
For several months now I refuse to stay logged in to Github. I login on an incognito window when I need something, and log out when I&#x27;m done. Github javascript is disabled outside of incognito windows.<p>This is the same playbook I have followed with success to disconnect from Facebook, Linkedin, Google, Reddit and Twitter. (And Quora. And Medium..) When it&#x27;s inconvenient it just makes me try to avoid these sites.
jestarray超过 1 年前
It&#x27;s unfortunate but it&#x27;s not as bad as Twitter&#x2F;other forced logins for features. The difference is that making an account is free, you don&#x27;t have to pay anything and there are no ads, whereas Twitter has incentive because it needs ad revenue and wants to look like it has more people on it
评论 #39331558 未加载
Alifatisk超过 1 年前
Oh, we&#x27;re at the extinguish phase.
smittywerben超过 1 年前
Github was rate-limiting me from doing just basic searches. I hit them, paging through results too fast, and it times me out. My account is a few years old, but admittedly, it lacks engagement à la social media (favorites, repos, forks, etc).<p>Anyway, I don&#x27;t buy Github&#x27;s excuse that the new search &#x27;takes more CPU power&#x27;; this must be to prevent scraping data for LLMs. Have you hit the new search rate limits?
zzo38computer超过 1 年前
On another computer that I was not logged in, something else happened. It didn&#x27;t say log in, but the search results were displayed and then one second later it removed them and displayed an error message (which did not explain the problem, but it did not ask you to log in, either). I was able to view the search results by pausing execution of scripts using the debugger, though.
joshxyz超过 1 年前
here&#x27;s the real kicker to me: you cant sort the search results these days by date.<p>whoever fucked this up thinking he&#x27;s doing good for humanity deserves to be hit with 65,535 lightning bolts in exponentially increasing amperages.
tkiolp4超过 1 年前
That’s why I stopped using it at work (on my company’s laptop I don’t want to log in to github using my personal credentials)
gitgud超过 1 年前
I’ve always found GitHub to be quite generous with what functionality they give free users, especially visitors that don’t have an account. They kind of paved the way in that regard…<p>Some sites would probably put everything behind a login-wall. I can imagine some alternative version of git hosting with the following message:<p><pre><code> Sign in to clone this repo</code></pre>
评论 #39333611 未加载
MakeThemMoney超过 1 年前
I just create a new account every time I want to search for something
syndacks超过 1 年前
Need to search on GitHub? Make an account! Don’t want to make an account? Leave!
Departed7405超过 1 年前
This will greatly reduce Github ability to be an App Store. Reminder that GitHub isn&#x27;t banned* or censored by Microsoft in China, so it&#x27;s a good way to download VPNs and other banned apps.<p>*There is some frequent outages on an individual level, but if you try enough, it works.<p>EDIT : This doesn&#x27;t affect search of repos. My bad.
DarthNebo超过 1 年前
This is old news
xinayder超过 1 年前
They also completely removed the activity from people you follow from your homepage, claiming everything should be under &quot;explore&quot;, while promoting their recommendations provided by an algorithm. They claimed it &quot;used too many resources&quot;.<p>Everyone complained about this decision, fast-forward 6 months, Microsoft doesn&#x27;t give a fuck.<p>I used the homepage to learn about new projects people I follow are working on or interested it, but now it&#x27;s nearly impossible to find out.<p>Enshittification is real.
beeburrt超过 1 年前
It&#x27;s time we all moved away from GH
评论 #39329613 未加载
simonblack超过 1 年前
We said that GitHub would become trashed once MSFT got their grubby little fingers into it.
henriquez超过 1 年前
GitHub considered harmful.
johannesrexx超过 1 年前
I believe that Cory Doctorow would suggest that the enshittification of GitHub is now in full swing.
xfragrance超过 1 年前
what a shame
MountainMan1312超过 1 年前
That&#x27;s okay, GitHub&#x27;s search is atrocious anyway.
评论 #39324625 未加载
评论 #39326021 未加载
评论 #39324107 未加载
评论 #39324506 未加载