DEV Community

Dimitrios Desyllas
Dimitrios Desyllas

Posted on

Can I commit changes and push changes into my vendor if I use vcs as composer repository?

I am looking a way to manage the dependencies that I develop and use at the same time in multiple projects:

I have the following composer.json:

{
    "repositories":[
      {
        "type": "vcs",
        "url": "git@github.com:vendor/secret.git"
      }
    ],
    "deps":{
       "foo/bar":"dev-master#1.1",
       "bar/baz":"dev-master#1.2"
    },
    "config": {
        "preferred-install": {
            "foo/bar": "source",
            "bar/baz": "source",
            "*": "dist"
        }
    }
}

And I am the developer of both foo/bar and bar/baz dependencies. If I want to do a change…

What I want is to develop a new dependency version and tag it and update by cding into vendor folder and commit my changes.

Can you help me with that?

Top comments (0)