Closed chuanma closed 11 years ago
Also in our Project A
composer.json, we don't require anything else except our coding-standards repo. And I checked packagist.org, foobugs-standards/php_codesniffer
is never required by any other package. But That package has a replaces
directive for squizlabs/php_codesniffer
. Not sure how foobugs-standards/php_codesniffer
is chosen by the resolver.
The foobugs package was incorrectly replacing phpcs, and I removed it. The issue however on your end is that 1.5.0RC2 is not stable, so it doesn't match the default minimum stability of your root package. You should allow it explicitly by requiring "squizlabs/php_codesniffer":"@RC"
in your root package, or lower the minimum stability to RC.
In order to support multiple projects, we create a Tool repo
co/coding-standards
that loads all of the php tools we use, and we just need to require this internal repo in other projects. Today we tried to change the version from1.4.3
to1.5.0RC2
forsquizlabs/php_codesniffer
. It worked perfectly fine in the coding-standards repo when we testedcomposer install
. It loads the right package.However, when we
composer install --dev
in project A, here is the error message. It tries to load a different package that we never heard of. When we had the stable version1.4.3
, it was fine.Not sure if it helps. But we use default minimun-stability level.
Installing foobugs-standards/php_codesniffer (1.99.2) Downloading: connection... Could not fetch https://api.github.com/repos/foobugs-standards/PHP_CodeSniffer/zipball/1.99.2, enter your GitHub credentials to access private repos The credentials will be swapped for an OAuth token stored in /var/lib/jenkins/.composer/config.json, your password will not be stored To revoke access to this token you can visit https://github.com/settings/applications Username:
[RuntimeException] Aborted