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

Timeout when install dependencies #9

Closed
maxgu opened this issue May 27, 2014 · 4 comments
Closed

Timeout when install dependencies #9

maxgu opened this issue May 27, 2014 · 4 comments

Comments

@maxgu
Copy link

maxgu commented May 27, 2014

i have timeout exception when load zend-mvc

- Installing zendframework/zend-mvc (dev-master 77fe4d6)
    Cloning 77fe4d6052b3b6b9ec6e44216c05935d8d7723ca

  [Symfony\Component\Process\Exception\ProcessTimedOutException]                               
  The process "git clone 'git://github.com/zendframework/Component_ZendMvc.git' '/home/maxgu/  
  proj/snailfinder/src/vendor/zendframework/zend-mvc/Zend/Mvc' && cd '/home/maxgu/proj/snailf  
  inder/src/vendor/zendframework/zend-mvc/Zend/Mvc' && git remote add composer 'git://github.  
  com/zendframework/Component_ZendMvc.git' && git fetch composer" exceeded the timeout of 300  
   seconds.            

How i can load zend\Mvc manual?
Or what can i do?

@weierophinney
Copy link

Just try again. If the problem persists, post an issue on the composer
project repository. (I use these same dependencies daily with Apigility
with no problem).
On May 27, 2014 7:16 AM, "max" notifications@github.com wrote:

i have timeout exception when load zend-mvc

  • Installing zendframework/zend-mvc (dev-master 77fe4d6)
    Cloning 77fe4d6052b3b6b9ec6e44216c05935d8d7723ca

    [Symfony\Component\Process\Exception\ProcessTimedOutException]
    The process "git clone 'git://github.com/zendframework/Component_ZendMvc.git' '/home/maxgu/
    proj/snailfinder/src/vendor/zendframework/zend-mvc/Zend/Mvc' && cd '/home/maxgu/proj/snailf
    inder/src/vendor/zendframework/zend-mvc/Zend/Mvc' && git remote add composer 'git://github.
    com/zendframework/Component_ZendMvc.git' && git fetch composer" exceeded the timeout of 300
    seconds.

How i can load zend\Mvc manual?
Or what can i do?


Reply to this email directly or view it on GitHubhttps://github.com//issues/9
.

@maxgu
Copy link
Author

maxgu commented May 27, 2014

with
export COMPOSER_PROCESS_TIMEOUT=600
all was uploaded.

i guess problem in Component_ZendMvc:

git clone git://github.com/zendframework/Component_ZendMvc.git
Cloning into 'Component_ZendMvc'...
remote: Reusing existing pack: 141666, done.
Receiving objects:  41% (58967/141666), 35.28 MiB | 82 KiB/s

141К object (~70Mb repo size) too much for depended library.

And sorry for my issue - problem not in phlyty

@maxgu maxgu closed this as completed May 27, 2014
@weierophinney
Copy link

I'll update the repo to use stable versions; phlyty was written before we had a stable ZF2 version, IIRC. Stable versions will reduce the installation size significantly.

@weierophinney
Copy link

Actually, @maxgu ... the repo is already using versions such as "2.*" -- which tells me you must have set your project's minimum-stability to "dev". You may want to alter yours to remove that, and only require dev stability for the specific repos that need it. As an example:

"require": {
    "phly/phlyty": "~1.0",
    "some-other/dep": "~1.0-dev"
}

One note: any sub-dependencies that also need dev versions must also be listed in the project composer.json with the stability required. This may take some sleuthing -- but overall, it's worth it, as it will ensure you have distribution packages for stable packages, thus keeping your dependency repository sizes much smaller.

weierophinney pushed a commit that referenced this issue May 27, 2014
In response to #9, switching to "next significant release" operator (`~`) for
specifying dependencies. This is recommended over wildcards by the composer
project. Currently, it should not affect any consumers of this repo.
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

2 participants