-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
license: allow github to detect MIT license #743
Conversation
Resolves uber-go#731 github uses https://github.com/licensee/licensee to detect the license for the project. Because the project contains a file named "check_license.sh" it thinks this is a license file. It is unable to detect a license for that file and fails. Here is the run output: < ./bin/licensee detect ../zap/ License: NOASSERTION Matched files: LICENSE.txt, check_license.sh LICENSE.txt: Content hash: d64f3bb4282a97b37454b5bb96a8a264a3363dc3 Attribution: Copyright (c) 2016-2017 Uber Technologies, Inc. Confidence: 100.00% Matcher: Licensee::Matchers::Exact License: MIT check_license.sh: Content hash: 2ca67b08b61b91f2b3c67fe4581ee9e8dc9da2e8 License: NOASSERTION If you rename the file to checklicense.sh it won't think that it is a license file and will correctly advertise zap as a MIT project < ./bin/licensee detect ../zap/ License: MIT Matched files: LICENSE.txt LICENSE.txt: Content hash: d64f3bb4282a97b37454b5bb96a8a264a3363dc3 Attribution: Copyright (c) 2016-2017 Uber Technologies, Inc. Confidence: 100.00% Matcher: Licensee::Matchers::Exact License: MIT
Codecov Report
@@ Coverage Diff @@
## master #743 +/- ##
=======================================
Coverage 97.44% 97.44%
=======================================
Files 40 40
Lines 2117 2117
=======================================
Hits 2063 2063
Misses 46 46
Partials 8 8 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thanks for the fix!
Resolves uber-go#731 github uses https://github.com/licensee/licensee to detect the license for the project. Because the project contains a file named "check_license.sh" it thinks this is a license file. It is unable to detect a license for that file and fails. Here is the run output: ``` < ./bin/licensee detect ../zap/ License: NOASSERTION Matched files: LICENSE.txt, check_license.sh LICENSE.txt: Content hash: d64f3bb4282a97b37454b5bb96a8a264a3363dc3 Attribution: Copyright (c) 2016-2017 Uber Technologies, Inc. Confidence: 100.00% Matcher: Licensee::Matchers::Exact License: MIT check_license.sh: Content hash: 2ca67b08b61b91f2b3c67fe4581ee9e8dc9da2e8 License: NOASSERTION ``` If you rename the file to checklicense.sh it won't think that it is a license file and will correctly advertise zap as a MIT project ``` < ./bin/licensee detect ../zap/ License: MIT Matched files: LICENSE.txt LICENSE.txt: Content hash: d64f3bb4282a97b37454b5bb96a8a264a3363dc3 Attribution: Copyright (c) 2016-2017 Uber Technologies, Inc. Confidence: 100.00% Matcher: Licensee::Matchers::Exact License: MIT ```
Resolves #731
github uses https://github.com/licensee/licensee to detect
the license for the project. Because the project contains a file
named "check_license.sh" it thinks this is a license file. It is
unable to detect a license for that file and fails. Here is the
run output:
< ./bin/licensee detect ../zap/
License: NOASSERTION
Matched files: LICENSE.txt, check_license.sh
LICENSE.txt:
Content hash: d64f3bb4282a97b37454b5bb96a8a264a3363dc3
Attribution: Copyright (c) 2016-2017 Uber Technologies, Inc.
Confidence: 100.00%
Matcher: Licensee::Matchers::Exact
License: MIT
check_license.sh:
Content hash: 2ca67b08b61b91f2b3c67fe4581ee9e8dc9da2e8
License: NOASSERTION
If you rename the file to checklicense.sh it won't think that it is a
license file and will correctly advertise zap as a MIT project
< ./bin/licensee detect ../zap/
License: MIT
Matched files: LICENSE.txt
LICENSE.txt:
Content hash: d64f3bb4282a97b37454b5bb96a8a264a3363dc3
Attribution: Copyright (c) 2016-2017 Uber Technologies, Inc.
Confidence: 100.00%
Matcher: Licensee::Matchers::Exact
License: MIT