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

Short Apache 2.0 notice detected as The Unlicense #2

Open
nilium opened this issue Oct 1, 2017 · 1 comment
Open

Short Apache 2.0 notice detected as The Unlicense #2

nilium opened this issue Oct 1, 2017 · 1 comment

Comments

@nilium
Copy link

nilium commented Oct 1, 2017

I noticed this with gopkg.in/yaml.v2, commit 25c4ec802a7d637f88d584ab26798e94ad14c13b, but it appears the licenses tool detects the following text as the Unlicense:

Copyright 2011-2016 Canonical Ltd.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Output:

# licenses gopkg.in/yaml.v2
gopkg.in/yaml.v2  ? (The Unlicense, 35%)

I don't know why -- I haven't gone through the code -- but it's kind of an odd case. It's not really what I'd expect of an application of the Apache License 2.0, so it might be an interesting case to work towards improving detection of the license.

@RJPercival
Copy link

Here's another example of that license format that is incorrectly classified:
https://github.com/jmespath/go-jmespath/blob/c2b33e8439af944379acbdd9c3a5fe0bc44bd8a5/LICENSE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants