title: Composer - installing dependency from private git repository
body: <p>I have two projects on a private GitHub account - one is a library, and the other my application.</p>
  
  <p>I want to include my library into my application.</p>
  
  <p>My library's composer.json looks like this:</p>
  
  <pre><code>{
    "name": "andyw/mylibrary",
    "description": "My Library",
    "license": "proprietary",
    "homepage": "https://github.com/andyw/mylibrary",
    "require": {
      "php": "&gt;=5.5.0",
      "monolog/monolog": "1.*",
      "guzzle/guzzle": "3.*",
      "aws/aws-sdk-php": "2.*",
      "nixilla/twitter-api-consumer": "*",
      "webignition/robots-txt-file": "dev-master",
      "webignition/robots-txt-parser": "dev-master",
      "pusher/pusher-php-server": "*",
      "symfony/validator": "2.*"
    },
    "require-dev": {
      "phpunit/phpunit": "3.*"
    },
    "autoload": {
      "psr-0": {
        "": "src/"
      }
    }
  }
  </code></pre>
  
  <p>Running <code>composer update</code> on that project installs the dependencies just fine.  So far, so good.</p>
  
  <p>Now this is my application's composer.json:</p>
  
  <pre><code>{
    "name": "andyw/myapp",
    "type": "project",
    "description": "My application",
  
    "homepage": "https://github.com/andyw/myapplication",
    "license": "proprietary",
    "repositories": [
      {
        "type": "git",
        "url": "git@github.com:andyw/myapplication.git"
      }
    ],
    "require": {
      "php": "&gt;=5.5.0",
      "andyw/mylibrary": "dev-master",
      "facebook/php-sdk-v4": "4.0.*",
      "silex/silex": "~1.1",
      "monolog/monolog": "~1.6",
      "twig/twig": "~1.14",
      "doctrine/dbal": "~2.4",
      "nesbot/Carbon": "~1.6",
      "aws/aws-sdk-php": "2.*",
      "jms/serializer": "0.15",
      "symfony/validator": "2.*",
      "jdesrosiers/silex-cors-provider": "~0.1.2",
      "swiftmailer/swiftmailer": "&gt;=4.1.2,&lt;4.2-dev",
      "fzaninotto/faker": "~1.4"
    },
    "require-dev": {
      "mockery/mockery": "~0.8.0"
    },
    "autoload": {
      "psr-0": {
        "App": "src/"
      }
    }
  }
  </code></pre>
  
  <p>Running <code>composer update</code> on that project fails.  Adding the <code>--verbose</code> flag gives this output:</p>
  
  <pre><code>Your requirements could not be resolved to an installable set of packages.
  
    Problem 1
      - Installation request for andyw/mylibrary dev-master -&gt; satisfiable by andyw/mylibrary[dev-master].
      - andyw/mylibrary dev-master requires webignition/robots-txt-file dev-master -&gt; no matching package found.
  </code></pre>
  
  <p>If mylibrary can install <code>webignition/robots-txt-file dev-master</code>, why can't it be installed as a dependency of a dependency?  How can I fix this?</p>
  
  <p>FYI: None of my repos are public and I've changed the names of my packages/files for privacy reasons.</p>