L
L
Leopandro2015-12-06 22:04:34
Yii
Leopandro, 2015-12-06 22:04:34

How to "commit" the vendor folder in composer?

I made some changes to the vendor, how do I make it so that other users can get my changes? create a separate github and upload it there? the only way?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
sunrails, 2015-12-06
@sunrails

I made a few changes to the vendor

And in vain.
The vendor directory contains your project's dependencies.
Here, either a commit to the original repository, or a clone from the original and change in it.

S
Sergey, 2015-12-07
Protko @Fesor

I will add sunrails answer
Or wrap the dependency in your own object / class, which is usually much easier (unless, of course, we are talking about a bug) and make changes to the behavior there. The vendors folder must remain intact.

P
Puma Thailand, 2015-12-06
@opium

Pool request to the corresponding repo

M
mitaichik, 2015-12-06
@mitaichik

A very bad idea. I agree with my colleagues - here it is best to make a pull request to the vendor's repository and ask them to accept it. Or just fork the repository and connect it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question