Git Product home page Git Product logo

Comments (2)

jonabc avatar jonabc commented on May 26, 2024

It looks like the following to pull all the information would work

  1. bundle check to surface any errors
  2. bundle show --paths to get folders containing dependency specifications
  3. get the spec path from the folder
  4. Gem::Specification.load(spec_path)

from licensed.

jonabc avatar jonabc commented on May 26, 2024

Putting this on hold for now.

There are some design decisions on Bundler that make it pretty hard to use exclusively from CLI for our usages. After a few days of diving into Bundler and rubygems, I've found it easier to work around their API than it is to work around the CLI.

Bundler's configuration hierarchy favors local bundler configuration over ENV meaning that it's really difficult to maintain licensed behavior of excluding [:development, :test] groups from results. This goes against the expected hierarchy of specificity where settings on a command override all settings from the environment.

Loading dependencies fully from CLI commands introduces some performance penalties. If the implementation isn't significantly simpler from using the CLI, there's no reason to take a performance penalty as well.

If the bundler source continues to cause issues in the future then perhaps this issue should be revisited.

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.