1

I have created a GIT repo with some URL. Inside that repo is a folder Release and that contains a composer package - composer.json file, PHP files, etc.

Now, how do I reference this package in another project? Attempt one:

{ "require" : { "my/package/Release": "dev-master" }, "repositories": [ { "type": "vcs", "url": "[email protected]:my/package.git" } ] } 

Result:

No valid composer.json was found in any branch or tag of [email protected]:my/package.git, could not load a package from it.

Attempt two:

{ "require" : { "my/package": "dev-master" }, "repositories": [ { "type": "vcs", "url": "[email protected]:my/package.git/Release" } ] } 

Result:

[RuntimeException] Failed to execute git clone --mirror '[email protected]:my/package.git/Result' '/home/user/.cache/composer/vcs/git-bitbucket.org-my-package.git-Result/'

Cloning into bare repository '/home/user/.cache/composer/vcs/git-bitbucket.org-my-package.git-Result'... repository does not exist. fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

Composer documentation doesn't help either. Is this possible at all?

1

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.