Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Check plugin compatibility before upgrading
planeth wrote:
And yes i am not using git but mercurial
Composer uses version control systems to fetch packages from source repositories. To access a git repository you will need git. This is outlined in the installation instructions.
According to Composer’s documentation, for specifically GitHub Composer can fallback to GitHub’s API, if git isn’t installed and the requested repository and version can be fetched using the API. This means that for GitHub, git isn’t required as long as you have a version contrait that is referencing a tag in the repository, and the repository is public. You getting that message, would suggest that either you are trying to require textpattern/lock without a precise version contraint or you are trying to lock it to 4.6.*-dev.
You may also want to check $ composer.phar help [install|update] and the --prefer-dist flag, which overrides Composer to use dist instead of source where possible.
Last edited by Gocom (2013-05-13 22:13:14)
Offline
Re: Check plugin compatibility before upgrading
Thank you for the explanation.
The whole thing is quite new.
Following your explanation i did give a precise version for the require command : failed again.
using —prefer-dist flag : worked
Though it’s not clear what’s the difference between package source and package dist.
Offline