Closed samsonasik closed 8 years ago
The steps to reproduce:
1. create-project
$ composer create-project zendframework/zend-expressive-skeleton
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
Installing zendframework/zend-expressive-skeleton (1.0.0)
- Installing zendframework/zend-expressive-skeleton (1.0.0)
Downloading: 100%
Created project in /Users/samsonasik/www/zend-expressive-skeleton
> ExpressiveInstaller\OptionalPackages::install
Setup data and cache dir
Setting up optional packages
Minimal skeleton? (no default middleware, templates, or assets; configuration only)
[y] Yes (minimal)
[n] No (full; recommended)
Make your selection (No):
Which router do you want to use?
[1] Aura.Router
[2] FastRoute
[3] Zend Router
Make your selection or type a composer package name and version (FastRoute): 3
- Adding package zendframework/zend-expressive-zendrouter (^1.0)
- Copying /config/autoload/routes.global.php
Which container do you want to use for dependency injection?
[1] Aura.Di
[2] Pimple
[3] Zend ServiceManager
Make your selection or type a composer package name and version (Zend ServiceManager): 3
- Adding package zendframework/zend-servicemanager (^2.7.3 || ^3.0)
- Adding package ocramius/proxy-manager (^1.0)
- Copying /config/container.php
Which template engine do you want to use?
[1] Plates
[2] Twig
[3] Zend View installs Zend ServiceManager
[n] None of the above
Make your selection or type a composer package name and version (n): 3
- Adding package zendframework/zend-expressive-zendviewrenderer (^1.0)
- Copying /config/autoload/templates.global.php
- Copying /templates/error/404.phtml
- Copying /templates/error/error.phtml
- Copying /templates/layout/default.phtml
- Copying /templates/app/home-page.phtml
Which error handler do you want to use during development?
[1] Whoops
[n] None of the above
Make your selection or type a composer package name and version (Whoops): 1
- Adding package filp/whoops (^1.1)
2. require a package
$ composer require samsonasik/expressive-redirect-handler
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
Using version ^0.1.4 for samsonasik/expressive-redirect-handler
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package filp/whoops == 2.0.0.0 could not be found.
3. try composer update
$ composer update
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Removing filp/whoops (2.0.0)
- Installing filp/whoops (1.1.10)
Loading from cache
Writing lock file
Generating autoload files
4. re-require package
$ composer require samsonasik/expressive-redirect-handler
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
Using version ^0.1.4 for samsonasik/expressive-redirect-handler
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing samsonasik/expressive-redirect-handler (0.1.4)
Downloading: 100%
Writing lock file
Generating autoload files
note: I am using php 7
I am unable to reproduce. Whoops never installs a v2 version for me, and, based on the constraints we use (^1.1
), shouldn't.
I've tried with both my composer cache in place, as well as in a docker image with a fresh composer install, and with multiple versions of php. I have no idea how to reproduce reliably as a result.
Ok, I will try remove my composer cache, self-update, re-try, and back to it today/tomorrow
Warm regards,
Abdul Malik Ikhsan
Pada 29 Jan 2016, pukul 08.29, weierophinney notifications@github.com menulis:
I am unable to reproduce. Whoops never installs a v2 version for me, and, based on the constraints we use (^1.1), shouldn't.
I've tried with both my composer cache in place, as well as in a docker image with a fresh composer install, and with multiple versions of php. I have no idea how to reproduce reliably as a result.
— Reply to this email directly or view it on GitHub.
I've retried with remove composer cache and did composer self-update, it works now. Thank you ;)
Without composer update, when requiring other package, I got:
this is composer.json's require-dev generated:
When doing composer update, i got:
And after that, I can require other package.