Giter Site home page Giter Site logo

aura.project_kernel's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

aura.project_kernel's Issues

Update 2.x branch?

@koriym
I'd like to send a PR if I am allowed to fix Issue#13 into 2.x branch, like PR14.
#13 has already been fixed into 4.x (PR#15), but I still use the project with 2.x.
It is because the framework I'm using still depends on 2.x. In other words, bear/package needs aura/cli ^2.2 at present.
Then I can't upgrade this package in my project now.

On the other hand, I was concerned that probably releasing 2.x is unnecessary because the 2.x series doesn't support active PHP versions.

Please give me your opinion.

Add support for the new composer installed.json format

Composer has release version 2.0 and with it follows a new format for installed.json.

vendor/composer/installed.json format changed:

packages are now wrapped into a "packages" top level key instead of the whole file being the package array
packages now contain an "installed-path" key which lists where they were installed
there is a top level "dev" key which stores whether dev requirements were installed or not

This new format breaks project kernel:

PHP Warning:  Uncaught TypeError: Argument 4 passed to Aura\Project_Kernel\Project::__construct() must be of the type array, object given, called in /var/www/test/vendor/aura/project-kernel/src/Factory.php on line 122 and defined in /var/www/test/vendor/aura/project-kernel/src/Project.php:79
Stack trace:
#0 /var/www/test/vendor/aura/project-kernel/src/Factory.php(122): Aura\Project_Kernel\Project->__construct()
#1 /var/www/test/vendor/aura/project-kernel/src/Factory.php(82): Aura\Project_Kernel\Factory->newProject()
#2 /var/www/test/vendor/aura/project-kernel/src/Factory.php(48): Aura\Project_Kernel\Factory->newContainer()
#3 /var/www/test/web/index.php(15): Aura\Project_Kernel\Factory->newKernel()
#4 php shell code(1): include('/var/www/test...')
#5 {main}
  thrown in /var/www/test/vendor/aura/project-kernel/src/Project.php on line 79

https://github.com/auraphp/Aura.Project_Kernel/blob/2.x/src/Project.php#L79

Composer version 2.0.8 2020-12-03 17:20:38

Steps To Reproduce

Update composer via: composer selfupdate --snapshot
Run composer update

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.