Giter Site home page Giter Site logo

Comments (4)

chulkilee avatar chulkilee commented on June 10, 2024

It uses bundler as library - see lib/license_finder/package_managers/bundler.rb

from licensefinder.

mainej avatar mainej commented on June 10, 2024

@pivotalfish - one option is to add bundler to the "ignore_dependencies" config. But, to extend your point, arguably license_finder itself is a tool, not a dependency, so you shouldn't put it in your Gemfile. Issue #104 suggests updating license_finder's documentation to reflect this point.

@chulkilee - good point. Theoretically it would be possible to re-write LicenseFinder to use bundler as a command line tool (like lib/license_finder/package_managers/bower.rb) or to shell out to Ruby (like lib/license_finder/package_managers/pip.rb). Not much fun though - bundler doesn't seem to output JSON so you might have to parse Gemfile.lock.

from licensefinder.

mainej avatar mainej commented on June 10, 2024

@pivotalfish take a look at #126, a PR which would fix this problem. The changes that would affect you are:

  1. LF wouldn't store bundler's version anywhere, so that wouldn't create diffs in the doc/dependencies.db file. In fact, that file wouldn't exist any more.
  2. Running license_finder wouldn't change any files, so it wouldn't create diffs in the other doc/dependencies* files.

You would get diffs if you ran license_finder report > some_report_file.csv before every commit. But you could be more nuanced about the approach by, for example, only saving the report if license_finder says there are unapproved dependencies or if your version control suggests there are new dependencies.

What do you think? Feedback welcome.

from licensefinder.

mainej avatar mainej commented on June 10, 2024

Closing this with the release of 2.0. Fixing this kind of problem was a major motivation for the 2.0 work, so thanks for contributing to this discussion.

from licensefinder.

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.