-
Notifications
You must be signed in to change notification settings - Fork 787
Update submodules while running build.sh, and make it runs well #11
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
Conversation
I actually don't know git submodules that well - what do those commands do? I wouldn't want them to pull new changes from those repos, as I need to pull them manually and fix things when they break. |
Agreed, I do that manually to keep the HEAD sane. Doing it at build time is really an invitation to having issues for the user / testers / etc. |
Plus bug reports would become really annoying since each user might have a different configuration depending on what is happening in the submodules compared to what you have or will have by the time you test... |
None of those commands pull new changes, see https://git-scm.com/docs/git-submodule. |
True I read way too fast the code. The pull command would be adding new updates :) |
Perhapse updating submodule in |
I see, thanks. How about creating an On the other hand, keeping it in |
Actually you could put an option to build.sh that does the update or not and then test for that option. At least that way you don' t have to have two different scripts, no? It' s mostly a build time question. Every time you build you will have to wait for git to finish checking the submodules. So depending on how often you are building, you may or not start caring about this |
As I know binaryen is now seeking for new build system, does that means build.sh will gone in the future? If so, maybe we could just put submodule update instruction to README, otherwise adding an option to build.sh sounds nice. |
Yeah, we need a proper build system anyhow, so build.sh will be going away, I hope ;) So I'm ok to merge this as-is. Although, the idea of putting the info in the README instead sounds better actually. |
Thinking some more, let's do both, I'll merge this and add it to the readme. |
Update submodules while running build.sh, and make it runs well
No description provided.