Submodules for plugins or for dependencies?

Suppose Project X is the base project, and Project Y depends on X. Project Y may be a plug-in for Project X, or perhaps it is a stand-alone application that requires Project X in a different way.

I kept thinking that project Y should be a super project, and Project X should be a submodule of project Y.

However, after reading this , it seems that my thinking can be inverted. In the article, dependency is a super project and dependent code (in this case plugins) are submodules. Is this the right way to use submodules, then?

+3
source share
2 answers

ProjectY , ProjectX ( , X), .

X - , , , X ( ).

, ProjectY ProjectX (.. ), .


OP : ( Y X)?

ProjectZ, ProjectY ProjectX , ProjectX ProjectY, ProjectZ?
, ProjectY , (- ) " ".

2 , , : ProjectX ProjectY.

ProjectY , "" ( "" ) . , "ProjectZ", ProjectY :

  • , ProjectZ ( , ProjectX ProjectY, ProjectY).
  • ProjectX ( ProjectX, ProjectZ, " " ProjectX, )
+2

, , ( ) .

, Y (, ) X, .

, , , . : , .

+3

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


All Articles