composer.phar install older packages

405 views
Skip to first unread message

Zanon Samuele

unread,
Mar 26, 2013, 4:05:44 AM3/26/13
to compose...@googlegroups.com

I have a problem with "Composer" When I use Composer from my notebook with Linux operating system, Composer install older versions of components than those installed. When I use Composer from my Windows PC in the office everything works fine (using the same "composer.phar" file under version control).

What could be the problem? The command I use is php composer.phar update from project directory.

Thanks in advance for your answers

Jordi Boggiano

unread,
Mar 26, 2013, 5:31:48 AM3/26/13
to compose...@googlegroups.com
Can you share your composer.json so we can try to reproduce it?

Cheers

--
Jordi Boggiano
@seldaek - http://nelm.io/jordi

Zanon Samuele

unread,
Mar 26, 2013, 5:46:30 AM3/26/13
to compose...@googlegroups.com
Yes, of course ... I have attached my file composer.json to mail.


------
Zanon Samuele
mailto: webs86 AT gmail DOT com


2013/3/26 Jordi Boggiano <j.bog...@seld.be>

--
You received this message because you are subscribed to the Google Groups "composer-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to composer-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



composer.json

Jordi Boggiano

unread,
Mar 26, 2013, 8:57:00 AM3/26/13
to compose...@googlegroups.com
On 26.03.2013 10:46, Zanon Samuele wrote:
> Yes, of course ... I have attached my file composer.json to mail.

I get this on Win7 if I install your file:

$ composer update --dry-run
- Installing tecnick.com/tcpdf (dev-master 3e1f83e)
- Installing jdorn/sql-formatter (v1.2.0)
- Installing doctrine/lexer (v1.0)
- Installing doctrine/annotations (v1.1)
- Installing doctrine/collections (v1.1)
- Installing doctrine/cache (v1.0)
- Installing doctrine/inflector (v1.0)
- Installing doctrine/common (2.4.0-RC1)
- Installing doctrine/dbal (2.3.3)
- Installing psr/log (1.0.0)
- Installing twig/twig (v1.12.2)
- Installing symfony/symfony (v2.2.0)
- Installing doctrine/doctrine-bundle (v1.2.0-beta1)
- Installing doctrine/migrations (v1.0-ALPHA1)
- Installing doctrine/doctrine-migrations-bundle (dev-master 99c0192)
- Installing phpmailer/phpmailer (dev-master a9970fb)
- Installing doctrine/orm (2.3.3)
- Installing twig/extensions (v1.0.0)
- Installing kriswallsmith/assetic (v1.1.0-alpha4)
- Installing symfony/assetic-bundle (v2.1.2)
- Installing swiftmailer/swiftmailer (v4.3.0)
- Installing symfony/swiftmailer-bundle (v2.2.0)
- Installing monolog/monolog (1.4.0)
- Installing symfony/monolog-bundle (v2.2.0)
- Installing sensio/distribution-bundle (v2.2.0)
- Installing sensio/framework-extra-bundle (v2.2.0)
- Installing sensio/generator-bundle (v2.2.0)
- Installing jms/metadata (1.2.0-RC)
- Installing jms/cg (1.0.0)
- Installing jms/aop-bundle (1.0.0)
- Installing jms/di-extra-bundle (1.3.0)
- Installing phpoption/phpoption (1.1.0)
- Installing jms/parser-lib (1.0.0)
- Installing jms/security-extra-bundle (1.4.0)
- Installing zendframework/zend-stdlib (2.1.4)
- Installing zendframework/zend-math (2.1.4)
- Installing zendframework/zend-captcha (2.1.4)
- Installing zendframework/zend-paginator (2.1.4)
- Installing zendframework/zend-version (2.1.4)
- Installing zendframework/zend-servicemanager (2.1.4)
- Installing zendframework/zend-i18n (2.1.4)
- Installing zendframework/zend-validator (2.1.4)
- Installing zendframework/zend-escaper (2.1.4)
- Installing zendframework/zend-uri (2.1.4)
- Installing zendframework/zend-feed (2.1.4)
- Installing zendframework/zend-navigation (2.1.4)
- Installing gedmo/doctrine-extensions (dev-master 2a59134)

What do you get?

Zanon Samuele

unread,
Apr 1, 2013, 9:04:44 AM4/1/13
to compose...@googlegroups.com
I get this:

Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Updating monolog/monolog (1.4.0) to monolog/monolog (1.4.1)
  - Updating jms/metadata (1.2.0-RC) to jms/metadata (1.3.0)
  - Updating zendframework/zend-feed (2.1.4) to zendframework/zend-feed (2.0.0-beta5)
  - Updating phpoption/phpoption (1.1.0) to phpoption/phpoption (1.2.0)
  - Uninstalling zendframework/zend-escaper (2.1.4)
  - Uninstalling zendframework/zend-servicemanager (2.1.4)
  - Uninstalling zendframework/zend-version (2.1.4)
  - Uninstalling zendframework/zend-uri (2.1.4)
  - Uninstalling zendframework/zend-validator (2.1.4)
  - Uninstalling zendframework/zend-i18n (2.1.4)
  - Updating phpmailer/phpmailer (dev-master 81b30dc) to phpmailer/phpmailer (dev-master 899aac2)
  - Updating tecnick.com/tcpdf (dev-master c4e3916) to tecnick.com/tcpdf (dev-master db650c6)


------
Zanon Samuele
mailto: webs86 AT gmail DOT com


2013/3/26 Jordi Boggiano <j.bog...@seld.be>
On 26.03.2013 10:46, Zanon Samuele wrote:

Jordi Boggiano

unread,
Apr 2, 2013, 3:56:52 AM4/2/13
to compose...@googlegroups.com
On 01.04.2013 15:04, Zanon Samuele wrote:
> I get this:
>
> Loading composer repositories with package information
> Updating dependencies (including require-dev)
> - Updating monolog/monolog (1.4.0) to monolog/monolog (1.4.1)
> - Updating jms/metadata (1.2.0-RC) to jms/metadata (1.3.0)
> - Updating zendframework/zend-feed (2.1.4) to zendframework/zend-feed
> (2.0.0-beta5)
> - Updating phpoption/phpoption (1.1.0) to phpoption/phpoption (1.2.0)
> - Uninstalling zendframework/zend-escaper (2.1.4)
> - Uninstalling zendframework/zend-servicemanager (2.1.4)
> - Uninstalling zendframework/zend-version (2.1.4)
> - Uninstalling zendframework/zend-uri (2.1.4)
> - Uninstalling zendframework/zend-validator (2.1.4)
> - Uninstalling zendframework/zend-i18n (2.1.4)
> - Updating phpmailer/phpmailer (dev-master 81b30dc) to
> phpmailer/phpmailer (dev-master 899aac2)
> - Updating tecnick.com/tcpdf <http://tecnick.com/tcpdf> (dev-master
> c4e3916) to tecnick.com/tcpdf <http://tecnick.com/tcpdf> (dev-master
> db650c6)

So it seems to work fine for some packages like monolog, and does weird
things for others like the ZF ones. Not sure what's going on. Have you
tried to delete the vendors entirely and to run a composer update to see
which packages get installed exactly?

Zanon Samuele

unread,
Apr 2, 2013, 5:03:30 AM4/2/13
to compose...@googlegroups.com
If I remove vendors directory and run php composer.phar install --dry-run it return me

Loading composer repositories with package information
Installing dependencies
  - Installing tecnick.com/tcpdf (dev-master d44b09f)
  - Installing jdorn/sql-formatter (v1.2.0)
  - Installing doctrine/lexer (v1.0)
  - Installing doctrine/annotations (v1.1)
  - Installing doctrine/collections (v1.1)
  - Installing doctrine/cache (v1.0)
  - Installing doctrine/inflector (v1.0)
  - Installing doctrine/common (2.4.0-RC1)
  - Installing doctrine/dbal (2.3.3)
  - Installing psr/log (1.0.0)
  - Installing twig/twig (v1.12.2)
  - Installing symfony/symfony (v2.2.0)
  - Installing doctrine/doctrine-bundle (v1.2.0-beta1)
  - Installing doctrine/migrations (v1.0-ALPHA1)
  - Installing doctrine/doctrine-migrations-bundle (dev-master 99c0192)
  - Installing phpmailer/phpmailer (dev-master 0642bf5)
  - Installing doctrine/orm (2.3.3)
  - Installing twig/extensions (v1.0.0)
  - Installing kriswallsmith/assetic (v1.1.0-alpha4)
  - Installing symfony/assetic-bundle (v2.1.2)
  - Installing swiftmailer/swiftmailer (v4.3.0)
  - Installing symfony/swiftmailer-bundle (v2.2.0)
  - Installing monolog/monolog (1.4.1)
  - Installing symfony/monolog-bundle (v2.2.0)
  - Installing sensio/distribution-bundle (v2.2.0)
  - Installing sensio/framework-extra-bundle (v2.2.0)
  - Installing sensio/generator-bundle (v2.2.0)
  - Installing jms/metadata (1.3.0)
  - Installing jms/cg (1.0.0)
  - Installing jms/aop-bundle (1.0.0)
  - Installing jms/di-extra-bundle (1.3.0)
  - Installing phpoption/phpoption (1.2.0)
  - Installing jms/parser-lib (1.0.0)
  - Installing jms/security-extra-bundle (1.4.0)
  - Installing zendframework/zend-stdlib (2.1.4)
  - Installing zendframework/zend-math (2.1.4)
  - Installing zendframework/zend-captcha (2.1.4)
  - Installing zendframework/zend-paginator (2.1.4)
  - Installing zendframework/zend-feed (2.0.0-beta5)
  - Installing zendframework/zend-navigation (2.1.4)
  - Installing gedmo/doctrine-extensions (dev-master e96e48a)
  - Marking gedmo/doctrine-extensions (2.3.x-dev e96e48a) as installed, alias of gedmo/doctrine-extensions (dev-master e96e48a)
kriswallsmith/assetic suggests installing leafo/lessphp (Assetic provides the integration with the lessphp LESS compiler)
kriswallsmith/assetic suggests installing leafo/scssphp (Assetic provides the integration with the scssphp SCSS compiler)
kriswallsmith/assetic suggests installing ptachoire/cssembed (Assetic provides the integration with phpcssembed to embed data uris)
kriswallsmith/assetic suggests installing leafo/scssphp-compass (Assetic provides the integration with the SCSS compass plugin)
monolog/monolog suggests installing mlehner/gelf-php (Allow sending log messages to a GrayLog2 server)
monolog/monolog suggests installing raven/raven (Allow sending log messages to a Sentry server)
monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)
monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)
zendframework/zend-stdlib suggests installing pecl-weakref (Implementation of weak references for Stdlib\CallbackHandler)
zendframework/zend-captcha suggests installing zendframework/zendservice-recaptcha (ZendService\ReCaptcha component)
zendframework/zend-feed suggests installing zendframework/zend-uri (Zend\Uri component)
zendframework/zend-feed suggests installing zendframework/zend-validator (Zend\Validator component)
zendframework/zend-navigation suggests installing zendframework/zend-config (Zend\Config component)
zendframework/zend-navigation suggests installing zendframework/zend-mvc (Zend\Mvc component)
zendframework/zend-navigation suggests installing zendframework/zend-view (Zend\View component)
gedmo/doctrine-extensions suggests installing doctrine/mongodb-odm (>=1.0.0-BETA7)
gedmo/doctrine-extensions suggests installing doctrine/mongodb (>=1.0.1)


------
Zanon Samuele
mailto: webs86 AT gmail DOT com


2013/4/2 Jordi Boggiano <j.bog...@seld.be>

Jordi Boggiano

unread,
Apr 2, 2013, 5:06:44 AM4/2/13
to compose...@googlegroups.com
On 02.04.2013 11:03, Zanon Samuele wrote:
> If I remove vendors directory and run php composer.phar install
> --dry-run it return me

OK, so that's exactly the same as what I got. Seems fine to me no?

Zanon Samuele

unread,
Apr 2, 2013, 5:08:09 AM4/2/13
to compose...@googlegroups.com
Zend-feed is not correct. Composer download 2.0.0-beta5 instead 2.1.4


------
Zanon Samuele
mailto: webs86 AT gmail DOT com


2013/4/2 Jordi Boggiano <j.bog...@seld.be>
On 02.04.2013 11:03, Zanon Samuele wrote:
Reply all
Reply to author
Forward
0 new messages