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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Open source license usage on GitHub

129 点作者 hodgesmr大约 10 年前

20 条评论

andrewguenther大约 10 年前
Just a friendly reminder about what it means to not have a license in your repository. You can read about it here: <a href="http://choosealicense.com/no-license/" rel="nofollow">http:&#x2F;&#x2F;choosealicense.com&#x2F;no-license&#x2F;</a><p>Essentially, by not including a license, you default to standard copyright protections and &quot;you retain all rights to your source code and that nobody else may reproduce, distribute, or create derivative works from your work.&quot; However, GitHub&#x27;s ToS say that &quot;by setting your pages to be viewed publicly, you agree to allow others to view your Content. By setting your repositories to be viewed publicly, you agree to allow others to view and fork your repositories.&quot;[1] If you go into the glossary you can see that the definition for fork &quot;allow[s] you to freely make changes to a project without affecting the original.&quot;[2]<p>Since I&#x27;m not a lawyer, I&#x27;m not going to do any deeper analysis other than direct quotation here, but I can say that I personally like to submit pull requests with the MIT license to projects I wish to use which do not include a license, as well as a link to <a href="http://choosealicense.com/" rel="nofollow">http:&#x2F;&#x2F;choosealicense.com&#x2F;</a> before I will use them in my own project.<p>[1] <a href="https://help.github.com/articles/github-terms-of-service/#f-copyright-and-content-ownership" rel="nofollow">https:&#x2F;&#x2F;help.github.com&#x2F;articles&#x2F;github-terms-of-service&#x2F;#f-...</a><p>[2] <a href="https://help.github.com/articles/github-glossary/#fork" rel="nofollow">https:&#x2F;&#x2F;help.github.com&#x2F;articles&#x2F;github-glossary&#x2F;#fork</a>
评论 #9174145 未加载
评论 #9173893 未加载
评论 #9173944 未加载
评论 #9174029 未加载
JoshTriplett大约 10 年前
There are several entire communities of projects, such as Ruby or node.js, which by policy put all of their myriad projects on GitHub. Those communities have thousands or tens of thousands of repositories each, which make up a significant part of the 80000 repositories shown in the main graph in this article, and they&#x27;re almost all MIT. So I&#x27;m wondering how much of the huge set of MIT repositories on GitHub all come from that handful of communities, and how much is random contributors.<p>I&#x27;d also suggest that there&#x27;s a significant overlap between people who choose copyleft licenses and people who avoid proprietary hosting services.<p>So while I <i>do</i> think this data is significant, I think it represents the GitHub community, not the broader FOSS community.
评论 #9173943 未加载
kibwen大约 10 年前
I was curious how this handled repositories that use are offered under more than one license, so I tried this out on the Rust repository:<p><pre><code> &quot;license&quot;: { &quot;key&quot;: &quot;apache-2.0&quot;, &quot;name&quot;: &quot;Apache License 2.0&quot;, &quot;url&quot;: &quot;https:&#x2F;&#x2F;api.github.com&#x2F;licenses&#x2F;apache-2.0&quot; } </code></pre> Rust is offered under both MIT and Apache 2, and has corresponding LICENSE-MIT and LICENSE-APACHE files in its root directory. I&#x27;m assuming that Github simply searches alphabetically for all files that begin with LICEN[CS]E and eagerly terminates upon finding a single match.
评论 #9176712 未加载
frik大约 10 年前
It&#x27;s good to see MIT and GPLv2 in the top 3, with BSD* and LGPL* in the top 10.<p>The MIT license is also known as the <i>X11 License</i>: <a href="https://www.gnu.org/licenses/license-list.en.html#X11License" rel="nofollow">https:&#x2F;&#x2F;www.gnu.org&#x2F;licenses&#x2F;license-list.en.html#X11License</a><p>In the age <i>secure boot</i> functionality of <i>UEFI</i> (BIOS replacement) to hinder or outright prevent the installation of alternative operating systems and locked <i>firmwares</i> on common smartphone and tablet hardware. The source code license has a strategic value, especially with high profile open source projects like operating systems. Examples: Android based on GPLv2 Linux, OSX&#x2F;iOS and many routers based *BSD operating system source code that ship on a closed down hardware.
pointfree大约 10 年前
I&#x27;m pleasantly surprised to see that AGPLv3 is at least in the 10th spot.
reiz大约 10 年前
Very interesting blog post. I wouldn&#x27;t have thought that so less projects on GitHub provide a proper license! I&#x27;m working on <a href="https://www.versioneye.com" rel="nofollow">https:&#x2F;&#x2F;www.versioneye.com</a> and we track currently more than 500K open source projects in package managers. I just did a quick lookup in our database about Ruby licenses. Currently we have licenses for 56803 Ruby projects (RubyGems) and 49842 of them are MIT! That means 87% of all Ruby projects who provide a license at all, provide an MIT license! I will do a couple more queries and write a blog post to this!
igravious大约 10 年前
Well. Thanks for the reminder. I always mean for the code I put on Github to be shared but I rarely seem to plonk a license file in the project root folder. (Does that mean I subconscious _don&#x27;t_ want to share???)<p>I just GPLv2&#x27;d <a href="https://github.com/igravious/clearsilver_ruby" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;igravious&#x2F;clearsilver_ruby</a> and <a href="https://github.com/igravious/clearsilver_ebuild" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;igravious&#x2F;clearsilver_ebuild</a> Nothing earth-shattering but it&#x27;s a start I hope...
评论 #9174627 未加载
sergiotapia大约 10 年前
I&#x27;m really happy that MIT is in the lead by such a wide margin. It&#x27;s the best license in my opinion.
评论 #9174450 未加载
评论 #9173728 未加载
评论 #9173498 未加载
评论 #9173938 未加载
quadrangle大约 10 年前
Too bad that choosealicense.com is so carefully designed to maintain neutral appearance while actively discouraging copyleft licenses (relegate GPL to last option, describe it as only about sharing rather than about preserving freedom, make it outdated GPLv2 — since they like GPLv2 loopholes better than closing the loopholes etc.)
agwa大约 10 年前
&gt; To detect what license, if any, a project is licensed under, we used an open source Ruby gem called Licensee to compare the repository&#x27;s LICENSE file to a short list of known licenses<p>They should also look in COPYING, which is the conventional place to declare that a project is licensed under the GPL. The GPL percentage would likely get a boost if they did this.
评论 #9173804 未加载
tracker1大约 10 年前
I prefer the shorter ISC license to BSD or MIT... It&#x27;s the default from npm&#x27;s init, and just feels better than putting more verbiage than what&#x27;s really needed.
eliotfowler大约 10 年前
I&#x27;d like to see them do some analysis and attempt to include licenses in READMEs. That seems to be VERY common amount projects on GitHub.
评论 #9173702 未加载
评论 #9173631 未加载
vitno大约 10 年前
If I start a project on GitHub, I generally put a license in the LICENSE file (at their repo creation). If I don&#x27;t start it on GitHub and later add it, I generally just put the license in the README(.md, &#x27;cause GitHub).<p>This should definitely crawl the README as well.
ksk大约 10 年前
&gt;Here at GitHub, we&#x27;re big fans of open source,<p>When will GitHub be open sourced?
评论 #9174212 未加载
评论 #9174681 未加载
kijin大约 10 年前
Is there any way to select a license for an existing GitHub repository, without adding or modifying any file at a particular location in the tree?<p>Also, it&#x27;s difficult to find out the license for any given repository while casually browsing or searching. I&#x27;m often looking for things that come with (or without) a particular license, e.g. &quot;I can&#x27;t use any GPL components in my current project.&quot; It would be really nice if the license was displayed prominently, just like the programming language used.
rmc大约 10 年前
Seems to look for the file &quot;LICENSE&quot;. Some people spell it &quot;LICENCE&quot;
评论 #9174319 未加载
XiZhao大约 10 年前
For another alternative:<p><a href="https://tldrlegal.com/api/license" rel="nofollow">https:&#x2F;&#x2F;tldrlegal.com&#x2F;api&#x2F;license</a><p>is available w&#x2F; default REST pagination&#x2F;query params for content on TLDRLegal
fiatjaf大约 10 年前
Ok, I just added a lot of LICENSEs from the web interface to a lot of repos and I&#x27;m not ashamed.
HeadlessChild大约 10 年前
All those Linux &quot;dot-files&quot; and similar stuff take up quite a lot of space on GitHub.
seth_gillette大约 10 年前
So some intern put together a list of all the licenses?