egeloen / IvoryLuceneSearchBundle

Provides a Zend Lucene Search integration for your Symfony2 project.
MIT License
29 stars 11 forks source link

zf install problem #2

Closed piotrchludzinski closed 12 years ago

piotrchludzinski commented 12 years ago

Installing/Updating Zend fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree. Use '--' to separate paths from revisions fatal: ambiguous argument 'origin/HEAD': unknown revision or path not in the working tree. Use '--' to separate paths from revisions fatal: bad default revision 'HEAD'

wtf?

egeloen commented 12 years ago

Can you explain a little be more your issue ? With the error message only, I'm not able to help you, I need to know how do you get this error :)

piotrchludzinski commented 12 years ago

Sorry. It appears when I execute php bin/vendors install/update.

egeloen commented 12 years ago

Can you copy/paste your deps file ? It seems you don't configure it correctly.

Have you followed this explanation ?

piotrchludzinski commented 12 years ago

[symfony] git=http://github.com/symfony/symfony.git version=v2.0.9

[twig] git=http://github.com/fabpot/Twig.git version=v1.4.0

[monolog] git=http://github.com/Seldaek/monolog.git version=1.0.2

[doctrine-common] git=http://github.com/doctrine/common.git version=2.1.4

[doctrine-dbal] git=http://github.com/doctrine/dbal.git version=2.1.5

[doctrine] git=http://github.com/doctrine/doctrine2.git version=2.1.5

[swiftmailer] git=http://github.com/swiftmailer/swiftmailer.git version=v4.1.4

[assetic] git=http://github.com/kriswallsmith/assetic.git version=v1.0.2

[twig-extensions] git=http://github.com/fabpot/Twig-extensions.git

[metadata] git=http://github.com/schmittjoh/metadata.git version=1.0.0

[SensioFrameworkExtraBundle] git=http://github.com/sensio/SensioFrameworkExtraBundle.git target=/bundles/Sensio/Bundle/FrameworkExtraBundle version=origin/2.0

[JMSSecurityExtraBundle] git=http://github.com/schmittjoh/JMSSecurityExtraBundle.git target=/bundles/JMS/SecurityExtraBundle version=origin/1.0.x

[SensioDistributionBundle] git=http://github.com/sensio/SensioDistributionBundle.git target=/bundles/Sensio/Bundle/DistributionBundle version=origin/2.0

[SensioGeneratorBundle] git=http://github.com/sensio/SensioGeneratorBundle.git target=/bundles/Sensio/Bundle/GeneratorBundle version=origin/2.0

[AsseticBundle] git=http://github.com/symfony/AsseticBundle.git target=/bundles/Symfony/Bundle/AsseticBundle version=v1.0.1

[GregwarCaptchaBundle] git=git://github.com/Gregwar/CaptchaBundle.git target=/bundles/Gregwar/CaptchaBundle

[knp-components] git=http://github.com/KnpLabs/knp-components.git

[KnpPaginatorBundle] git=http://github.com/KnpLabs/KnpPaginatorBundle.git target=bundles/Knp/Bundle/PaginatorBundle

[GregwarImageBundle] git=git://github.com/Gregwar/ImageBundle.git target=/bundles/Gregwar/ImageBundle

[Elastica] git=git://github.com/ruflin/Elastica.git target=elastica

[FOQElasticaBundle] git=git://github.com/Exercise/FOQElasticaBundle.git target=bundles/FOQ/ElasticaBundle version=origin/2.0

[WhiteOctoberBreadcrumbsBundle] git=git://github.com/whiteoctober/BreadcrumbsBundle.git target=/bundles/WhiteOctober/BreadcrumbsBundle

[zend] git=http://git.zendframework.com/zf.git

[IvoryLuceneSearchBundle] git=http://github.com/egeloen/IvoryLuceneSearchBundle.git target=/bundles/Ivory/LuceneSearchBundle

egeloen commented 12 years ago

This issue is, in fact, a symfony-standard issue. I have open a ticket.

piotrchludzinski commented 12 years ago

thx :)

egeloen commented 12 years ago

Closing as Symfony is now using Composer.

titomiguelcosta commented 12 years ago

I'm getting the following error when i run $ php composer.phar update:

Updating dependencies

[Composer\DependencyResolver\SolverProblemsException]
[Job(cmd=install, target=egeloen/lucene-search-bundle, packages=[egeloen/lucene-search-bundle-9999999-dev]), ]

here is my composer file: { "name": "symfony/framework-standard-edition", "autoload": { "psr-0": { "": "src/" } }, "require": { "php": ">=5.3.2", "symfony/symfony": "2.1.", "doctrine/orm": "2.2.0", "doctrine/doctrine-bundle": "dev-master", "twig/extensions": "dev-master", "symfony/assetic-bundle": "dev-master", "symfony/swiftmailer-bundle": "dev-master", "symfony/monolog-bundle": "dev-master", "sensio/distribution-bundle": "dev-master", "sensio/framework-extra-bundle": "dev-master", "sensio/generator-bundle": "dev-master", "jms/security-extra-bundle": "dev-master", "friendsofsymfony/user-bundle": "1.1.", "doctrine/doctrine-migrations-bundle": "dev-master", "knplabs/knp-menu-bundle": "dev-master", "knplabs/knp-paginator-bundle": "dev-master", "stof/doctrine-extensions-bundle": "dev-master", "mopa/bootstrap-bundle": "dev-master", "friendsofsymfony/comment-bundle": "dev-master", "friendsofsymfony/rest-bundle": "dev-master", "jms/serializer-bundle": "dev-master", "friendsofsymfony/rest-bundle": "dev-master", "friendsofsymfony/comment-bundle": "dev-master", "vich/uploader-bundle": "dev-master", "egeloen/lucene-search-bundle": "dev-master" }, "scripts": { "post-install-cmd": [ "Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap", "Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache", "Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installAssets" ], "post-update-cmd": [ "Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap", "Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache", "Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installAssets" ] }, "config": { "bin-dir": "bin" }, "extra": { "symfony-app-dir": "app", "symfony-web-dir": "web" } }

titomiguelcosta commented 12 years ago

i guess this error happens cos composer doesn't know how to install zf2, not sure

egeloen commented 12 years ago

Can you open an issue on composer repo ?

titomiguelcosta commented 12 years ago

to be honest, i think this is not a bug, maybe i did not install zf2 the proper way, not sure. the configuration in composer.json for zf2 and php look alike. Is it supposed composer to clone the zf2 repository? but how does it know the url? meantime, issue created

titomiguelcosta commented 12 years ago

they say the problem is in the composer.json file cos zf2 is not using composer, so maybe you need to fix the requirements, i guess.

egeloen commented 12 years ago

I have worked on this issue and I don't understand why that's not work. IMO, composer is now correctly configured.

If I try to install dependencies inside the bundle, that's work but if I try to require my bundle in a symfony2 project, that's fail. Have you an idea of what's going wrong?

titomiguelcosta commented 12 years ago

check the issue in the composer branch, they pointed out the problem and a possible solution, i tested and it works fine. i think you can not include zf2 like you do at the moment cos zf2 is not a composer package.

ant1j commented 12 years ago

It cannot install it through composer using the Symfony 2.1 Composer "version"

Looks like the dependency on the zf2 package has changed : In your file it looks like "zendframework/zf2" whereas Packagist gives "zendframework/zendframework"

egeloen commented 12 years ago

Currently, sf2 doesn't provide a composer.json & so, does not use composer. This is a temporary solution, I will provide an alternative composer config in order to be able to automatically include zf2.

ant1j commented 12 years ago

Thanks. It looks like sf2 will be using Composer for its 2.1 release (http://knplabs.fr/blog/symfony2-with-composer). A SF 2.0 an 2.1 composer versions are already available (http://packagist.org/packages/symfony/framework-standard-edition)

Hope this will be "publicly" available soon !