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.
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.