Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unlcear how to include a bitbucket private repository

Marcel
Contributor
November 20, 2018

We have a package in Bitbucket: Core.

We have another package: Common.

How to set up composer, so that every programmer can do a composer update and inside the Common-package there will be a version of the Core-package.

I looked for over a day on the internet, tried tons of so called solutions, but none of them work.

Is there any step by step guide (for dummies) how the achieve this?

What is my latest attempt: (snippets from the composer)

"repositories":[ {        "type": "vcs", "url" : "git@bitbucket.org:OurCompany/core.git"    }

"require": { "php": ">=7.1", "OurCompany/core": "dev" }

but it gives me:
Your requirements could not be resolved to an installable set of packages.

I could do a clone of the core-package, so I am lost here.

1 answer

0 votes
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 23, 2018

Hi Marcel, 

Are you trying to use Docker Composer? If so, here's the manual with all the commands: https://getcomposer.org/doc/01-basic-usage.md.

If you're not using this one or want to use a different one, let us know so we can try and continue helping you.

Kind regards!

Ana

Marcel
Contributor
November 25, 2018

No, not using dokcer. (I didn't mention docker)

I just try to use git commands.

So basically, we have  a private package (a product) that needs another private package (a library) as vendor package.

I tried hard to find a solution, the best thing would be a step by step guide, but didn't find anything.

SO: what to have in each composer, what to have for special settings in the bitbucket repo of the library, and what to have for settings in the product repository

And it must be, that several of my colleagues can work with this solution.

For what I understand, I need to have a SSH key that can have read rights on the library.
But how to set that in the product repo is unclear. The only possibility is in pipelines, but then it shows me a lot of choices that I have to make (maven gadle and stuff like that, with out an explanation where that choice it leading me to, or if I made the wrong choice, how to rest it. It makes me hesitating to do this step. I understand that pipelines are for CI, but can it be used for simple local developers as I tried to explain? Because this explanation is missing in the pipelines.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events