Git Product home page Git Product logo

Comments (4)

benbalter avatar benbalter commented on May 26, 2024 1

When licensee finds multiple license files in a project, it doesn't attempt to determine which is the "valid" license content. As a result the Project#license_file method returns nil if more than one license file is found.

Technically that behavior was implemented to preserve backward compatibility. If you call #license_files or #licenses (plural), it should give you everything it knows (but it's still up to Licensed or a human how to evaluate conflicting license information).

from licensed.

mlinksva avatar mlinksva commented on May 26, 2024
  1. never hurts to cache more of what the project documents about itself regarding licenses and related notices
  2. in the case of multiple licenses found, that'll always be other, right?
  3. not a requirement, but might be nice to include what file(s) licenses/notices are sourced from in the metadata

Licensee does make all this info available through other Project methods.

from licensed.

jonabc avatar jonabc commented on May 26, 2024

in the case of multiple licenses found, that'll always be other, right?

Not necessarily - if the project specifies a license in its package metadata (e.g. gemspec for a rubygems project), or if it's parseable from a readme then those will take precedence over other

from licensed.

mlinksva avatar mlinksva commented on May 26, 2024

Ah, right. It's still safer to include other license texts found, which could be eg for third party material the project includes and for which license notices should still be reproduced for. Of course the license text for the license identified by the project would be best output first in the cached document.

from licensed.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.