Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

composer installation failed for release 1.2 #117

Closed
ivanmtw opened this issue May 12, 2017 · 9 comments
Closed

composer installation failed for release 1.2 #117

ivanmtw opened this issue May 12, 2017 · 9 comments

Comments

@ivanmtw
Copy link

ivanmtw commented May 12, 2017

In my project composer.json:

"require": { "danog/madelineproto": ">=1.2" }

then composer update:

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
- Installation request for danog/madelineproto >=1.2 -> satisfiable by danog/madelineproto[1.2].
- danog/madelineproto 1.2 requires danog/phpstruct dev-fast -> satisfiable by danog/phpstruct[dev-fast] but these conflict with your requirements or minimum-stability.

If i install from git and update composer - it is ok for 1.2, but i need to install MadelineProto trough Composer for obvious reasons.

No errors for installation from Composer release 1.0.1

@ingria
Copy link
Contributor

ingria commented May 13, 2017

You should either set the "minimum-stability": "dev" in your composer.json, or require the danog/phpstruct dev-fast dependency globally (preferrable).

@hbashton
Copy link
Contributor

@CodeFuhrer This is a good way of doing it

@hbashton
Copy link
Contributor

@hbashton When you are making your composer.json, I would include everything from MadelineProto's

@danog
Copy link
Owner

danog commented May 13, 2017

Please always require dev-master (or even better, the new ultra-fast branch, dev-threading)

@ivanmtw
Copy link
Author

ivanmtw commented May 15, 2017

It is strange idea to use dev-master for all modules, not only this one, on production.

@danog
Copy link
Owner

danog commented May 16, 2017

It's not. Every commit introduces bugfixes, and I can't make a new release for every commit, so just please use dev-*

@danog danog closed this as completed May 16, 2017
@ivanmtw
Copy link
Author

ivanmtw commented May 17, 2017

Thanks, danog.
So,

{
    "minimum-stability": "dev",
	"require": {
		"php": ">=7.0",
		"danog/phpstruct": "dev-fast",
		"danog/madelineproto": "dev-threading"
	}
}

CallHandler: Got response for method req_DH_params @ try 1 (response try 2)
PHP Fatal error: Uncaught Error: Undefined class constant 'MODE_IGE' in /var/www/app/vendor/danog/madelineproto/src/danog/MadelineProto/MTProtoTools/Crypt.php:51

Is it because phpseclib/phpseclib#1095 failed?

@danog
Copy link
Owner

danog commented May 18, 2017

just use

    "minimum-stability": "dev",
    "require": {
        "danog/madelineproto": "dev-master"
    },
    "repositories": [
        {
            "type": "git",
            "url": "https://github.com/danog/phpseclib"
        }

phpstruct isn't needed anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@ivanmtw @ingria @danog @hbashton and others