Skip to content

BitBucket private repos not supported? #482

@ghost

Description

Given the following composer.json:

{
    "name": "vendor/private-bundle",
    "type": "symfony-bundle",
    "require": {
        "php": ">=5.3.2",
        "vendor/other-private-bundle": "*",
        "symfony/framework-bundle": "2.1.*"
    },
    "repositories": [
        {
            "type": "vcs",
            "url": "[email protected]:vendor/other-private-bundle.git"
        }
    ],
    "autoload": {
        "psr-0": {
            "Vendor\\PrivateBundle": ""
        }
    },
    "target-dir": "Vendor/PrivateBundle"
}

and calling php composer.phar install results in:

Installing dependencies
Your requirements could not be solved to an installable set of packages. 
Problems:
*The requested package "vendor/other-private-bundle" with constraint [] could not be found.*

I also tried to define repo url in other forms:

  • https://[email protected]/vendor/other-private-bundle.git
  • https://bitbucket.org/vendor/other-private-bundle
  • https://bitbucket.org/vendor/other-private-bundle.git
    without success :(

Dependency vendor/other-private-bundle has its own composer.json definition file.

How can I use private bitbucket repository as a dependency?
Am I doing something wrong or private repos are currently not supported?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions