Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Git submodule for 3rd party code #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

blochberger
Copy link

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.

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
Copy link
Owner

azadkuh commented Mar 31, 2016

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.

  • http-parser api is quite stable and if they break the api, not only qhttp but many others also break.
  • hopefully bash is available everywhere, even in Windows (by git itself)
  • imho managing and maintaining submodules by such scripts is simpler than git submodule.

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

@blochberger
Copy link
Author

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

@mrdeveloperdude
Copy link

my vote: scripts > submodules

@RafalNiewinski
Copy link

Yea, me too, I am voting for scripts.

@Ri0n
Copy link

Ri0n commented Aug 27, 2016

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
Copy link
Owner

azadkuh commented Aug 27, 2016

@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
Copy link

droidmonkey commented Feb 12, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants