Skip to content
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

Merged
merged 1 commit into from
Sep 26, 2019

Conversation

cep21
Copy link
Contributor

@cep21 cep21 commented Sep 25, 2019

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

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
Copy link

codecov bot commented Sep 25, 2019

Codecov Report

Merging #743 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4252145...8671a73. Read the comment docs.

Copy link
Collaborator

@abhinav abhinav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Copy link
Collaborator

@prashantv prashantv left a 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!

@abhinav abhinav merged commit d8445f3 into uber-go:master Sep 26, 2019
cgxxv pushed a commit to cgxxv/zap that referenced this pull request Mar 25, 2022
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
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Fix LICENSE formatting so GitHub recognizes the license
3 participants