Giter Club home page Giter Club logo

Comments (4)

theofidry avatar theofidry commented on June 10, 2024

#52 is not enough as it covers the case where Composer handle only the root package. It seems however that for the dependencies, it fetches the package metadata from elsewhere

from php-scoper.

padraic avatar padraic commented on June 10, 2024

https://github.com/composer/composer/blob/a3f2b7bb92a54f4e25b2d0998f00936ecac6f933/src/Composer/Installer.php#L262

Looks like the lock file and autoloader aren't linked. I've lost my familiarity with the composer code, but this suggests both are using the package metadata as mutually exclusive operations.

from php-scoper.

theofidry avatar theofidry commented on June 10, 2024

Yep looks like this is the wrong approach. Most likely Composer gets the data from Packagist directly and cache it somewhere, I could find a ~/.composer/cache/repo/https---packagist.org/provider-beberlei\$assert.json file for example. Makes me wonder if we should try too hook on Composer to fix that or rather fix the dumped files directly

from php-scoper.

padraic avatar padraic commented on June 10, 2024

We could try hooking, but whether that's simpler (or alternatively less error prone) than string manipulating the dumped file, I don't know.

from php-scoper.

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.