Menu

#855 Updating with Composer forces use of git protocol

v1.0_(example)
closed
composer (2)
1
2014-06-25
2013-11-01
No

Is there any way you can change the configuration to allow cloning via http instead of forcing cloning via git? On my shared host (godaddy), the cloning of tcpdf fails due to "connection refused" because it's using the git protocol. Everything else works. Thanks!

Discussion

  • Mark Pemberton

    Mark Pemberton - 2013-11-01

    I see that on 10/13/2013 you addressed this, but appears to still be an issue. Here's what happens when I do a composer update:

      - Installing bllim/datatables (dev-master c306abc)
        Loading from cache
    
    
      - Installing tecnick.com/tcpdf (dev-master 7745dbf)
        Cloning 7745dbfdf1604d04d902c1442c96ad4e7751fb72
    
    
    
      [RuntimeException]
      Failed to execute git clone 'git://git.code.sf.net/p/tcpdf/code' '(removed)/vendor/tecnick.com/tcpdf' && cd '(removed)/vendor/tecnick.com/tcpdf' && git remote add composer 'git://git.code.sf.net/p/tcpdf/code' && git fetch composer
    
      fatal: unable to connect to git.code.sf.net:
      git.code.sf.net[0: 216.34.181.155]: errno=Connection refused
    
     
  • Nicola Asuni

    Nicola Asuni - 2013-11-01
    • status: open --> closed
     
  • Nicola Asuni

    Nicola Asuni - 2013-11-01

    This is not a TCPDF bug.
    You can clone TCPDF either with http or git (just follow the Code in the top menu).
    In Packagist the default method choosen is GIT for performance reasons.
    May be I can create another packagist repo just for http.

     
  • EffetB

    EffetB - 2014-06-25

    You don't have to create another packgist repo.
    Just force http in composer.json of your project, by adding this lines :

    "repositories"     : {
        "sourceforge": {
            "type": "vcs",
            "url": "http://git.code.sf.net/p/tcpdf/code"
        }
    },
    
     

Log in to post a comment.

MongoDB Logo MongoDB