Install rails plugins as git submodules

(Why not? Is there) a way to run

./script/plugin install -SOME_HIDDEN_OPTION git://github.com...

So the plugin is installed as a submodule of git. The reason for the submodules is to save unrelated code from the project repository.

Perhaps there is a reason not to support plugins as submodules?

+3
source share
2 answers
./script/plugin install git://github.com/something/something...

Should work without submodule ...

If you want to update the plugin, just go to this plugin folder and do git pull.

, git. git git ... .. , , .

+2

. , , , .

, .

Braid .

+1

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