Symfony2: How to update a package whose source files have been changed?

I am using the KNP Pagination Bundle. I configured the twig file in the package source. Then I found a better way to do this without touching the package files.

Sorry, now every time I do

bin/vendors install 

I get the following error: -

"KNP Paginator Bundle" has local modifications. Please return or pin / click before re-running this command.

My .gitignore file is ignored / vendors

And my deps file has an incoming kit.

Is there any way to remove the package? So that I can reinstall it? Or what is the best way to solve my problem?

+4
source share
2 answers

./bin/vendors does not care about the contents of .gitignore . You can unlock the desired package, make changes and change the deps file to point to your plug.

If you still want to use the original package and just reinstall it, you can run ./bin/vendors install --reinstall or simply remove the package folder from the vendor directory and run ./bin/vendors install again.

+11
source

How about using git --reset ? Vendors are obtained with git clone in the end.

Can you explain what git reset is in English?

0
source

Source: https://habr.com/ru/post/1393367/


All Articles