Giter VIP home page Giter VIP logo

Comments (4)

theofidry avatar theofidry commented on September 27, 2024

it will report packages from the main project's directory composer.json, instead of bin's.

Isn't it a problem of the binary tool picking up the wrong composer.json or autoload file? (in which case often you can reconfigure them)

from composer-bin-plugin.

someniatko avatar someniatko commented on September 27, 2024

The binary tool in question does not "pick up" the composer.json on its own, it just uses (through a library, but nevertheless) the API Composer provides. IMO there should be a way for the bin plugin to report to the Composer itself which composer.json is the correct one, so Composer's InstalledVersions API reports packages correctly.

from composer-bin-plugin.

theofidry avatar theofidry commented on September 27, 2024

IMO there should be a way for the bin plugin to report to the Composer itself which composer.json is the correct one, so Composer's InstalledVersions API reports packages correctly.

  • how would you do that though?
  • how do you define what is the "correct composer.json": what if a bin tool is relying of the InstalledVersions from the bin directory not the root one?

From a brief glance, it looks like Versions::* is relying on the vendor dirs registered to the class loaders, which hints its likely related to what autoloader is autoloaded. #141 seems to confirm this.

To be clear: I do not mean there is nothing more to do here, but I don't think I understand the problem neither.

from composer-bin-plugin.

someniatko avatar someniatko commented on September 27, 2024

Yes, you are right! See #141 (comment)

from composer-bin-plugin.

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.