2

What is the best practice with versioning projects with multiple 3rd party libraries in git or other DVSC? Should the project source code be mixed with libraries in the same repository, or should they be separated somehow, or not versioned at all? Is this a good place for using submodules? I am talking about uncompiled libraries(php frameworks for example)

Rayfleck
  • 12,116
  • 8
  • 48
  • 74
tputnoky
  • 155
  • 1
  • 1
  • 8
  • It's important to keep your code synchronized with whatever version of the library it depends on. To that end, I'd definitely include the library in your repository in some fashion, so that when you check out a revision, you also get the correct version of the library. However, PEAR's installation/include system doesn't mesh well with this. Zend might also be awkward to use in this manner. Works great with small libraries though. – Frank Farmer Jan 31 '12 at 23:51
  • what is elegant way to keep in sync with zend/symfony/other larger frameworks? – tputnoky Feb 01 '12 at 00:20

1 Answers1

0

Use Submodules to house the libraries. If your development platform supports packages, you can forego those and just have specifications committed along with the code.

If you need to store the binaries, house the binaries in a public repo somewhere free like GitHub. The main repo can be stored in a private repo

Adam Dymitruk
  • 124,556
  • 26
  • 146
  • 141