2016-04-18 17 views
1

GitHubのリポジトリをZF3と互換性を持たせるように更新したいのですが、リポジトリを自分のアカウントにフォークして更新しました。GitHubでフォークを操作する方法

これが私のフォークです:https://github.com/chateaux/zf-oauth2-doctrine

今私のコードベースでこれを含めるために、私は作曲を使用しています:私は作曲の更新を実行するとき

{ 
    "name": "My Project", 
    "description": "", 
    "license": "PRIVATE - ", 
    "keywords": [ 
     "" 
    ], 
    "homepage": "", 
    "repositories": [ 
     { 
      "type": "vcs", 
      "url": "https://github.com/chateaux/zf-oauth2-doctrine" 
     } 
    ], 
    "require": { 
     "php": ">=5.4", 
     "zendframework/zendframework": "^2.4", 
     "doctrine/doctrine-orm-module": "~0.8", 
     "doctrine/orm": "^2.4", 
     "gedmo/doctrine-extensions": "^2.4", 
     "zf-commons/zfc-rbac":"^2.5", 
     "rwoverdijk/assetmanager": "^1.4", 
     "zfcampus/zf-apigility": "^1.0", 
     "zfr/zfr-cors": "^1.2", 
     "hounddog/doctrine-data-fixture-module": "^0.0.4", 
     "zfcampus/zf-oauth2-client": "dev-master", 
     "api-skeletons/zf-oauth2-doctrine": "dev-master", 
     "api-skeletons/zf-oauth2-doctrine-console": "^1.1", 
     "chateaux/toolbox" : "dev-master" 
    }, 
    "require-dev": { 
     "zfcampus/zf-apigility-admin": "~1.0", 
     "zfcampus/zf-development-mode": "~2.0", 
     "zendframework/zend-developer-tools": "dev-master" 
    } 
} 

はしかし、それはキャッシュから引っ張っているように見えます更新されたコードベースを取得できません:

$ php composer.phar update 
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug 
Warning: This development build of composer is over 60 days old. It is recommended to update it by running "composer.phar self-update" to get the latest version. 
Loading composer repositories with package information 
Updating dependencies (including require-dev)        
    - Installing zfcampus/zf-oauth2-doctrine (1.0.3) 
    Loading from cache 

私は間違っていますか?

答えて

2

あなたのcomposer.jsonファイル内のリポジトリアレイへのリポジトリのカスタムフォークを追加し、タイプフィールドgitを追加し、あなたがdev-[branchname]で使用するブランチを指す必要があります(たとえばpatch-4ためdev-patch4になります):

{ 
    "name": "My ZF2 application", 
    "repositories": [ 
     { 
      "type": "git", 
      "url": "https://github.com/chateaux/zf-oauth2-doctrine.git" 
     }, 
    ], 
    "require": { 
     ... 
     "zfcampus/zf-oauth2-doctrine": "dev-patch-4", 
     ... 
    } 
} 

patch-4がカスタムリポジトリの既存のブランチであることを確認してください。

この解決策の詳細はon the first hit from Googleです。

関連する問題