azadkuh / qhttp

a light-weight and asynchronous HTTP library (both server & client) in Qt5 and c++14
MIT License
484 stars 158 forks source link

Use Git submodule for 3rd party code #11

Open blochberger opened 8 years ago

blochberger commented 8 years ago

Instead of using a custom shell script which could also checkout a newer version of nodejs/http-parser which breaks compatibility with this project lets make use of those cool existing Git features.

The joyent/http-parser repository redirects to nodejs/http-parser so lets use that directly.

azadkuh commented 8 years ago

yupp, that's right!, update-dependencies.sh in current repo does nothing special, but like many others I don't like submodules (aka sobmodules!) and prefer bash or python scripts.

thanks for reminding me about joyent -> nodejs, i won't reject this idea (or subtree) and will wait for other opinions.

blochberger commented 8 years ago

I prefer using submodules, as with scripts I always end up analyzing what it does before actually executing it.

mrdeveloperdude commented 8 years ago

my vote: scripts > submodules

RafalNiewinski commented 8 years ago

Yea, me too, I am voting for scripts.

Ri0n commented 8 years ago

I was trying to embed qhttp into my project which already uses submodules. I didn't want to change anything in qhttp directory to not break updates but because of this shell script I had to write my own qmake project file for qhttp outside.

so my vote to submodules. and flexibility of project file should be improved anyway.

azadkuh commented 8 years ago

@Ri0n you won't break anything by running current script if you are intended to use qhttp as a subproject. by the simple .gitignore provided in qhttp, building or updating the repo does not mess things up (at least in theory and my use case)

droidmonkey commented 7 years ago

You could have both. Keep your script which will init the submodule. Those that know git's quirks will do it correctly without the script. It also lets you define a specific branch or tag if desired.