-
Notifications
You must be signed in to change notification settings - Fork 18
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
Why is GIT_RECURSIVE disabled by default? #32
Comments
I changed recursive submodules into an opt-in with 4127bdd in #24. Nobody complained back then. The ratio was that at the time, submodules were only needed for tests and models across, but they bloated the time and space requirements heavily. So maybe we should make this distinction more fine-grained now: modules like ocrd_olena which now needs the recursive submodule should set |
I understand the reasoning. Yeah, probably the easiest way is to either set It would be good to decide on a solution soon-ish since building the docker images with a blanket |
Since
I'll prepare a PR right away which gives |
Great, thanks, feel free to push directly to https://github.com/kba/ocrd_all/tree/submodules-2020-01-03 |
On a semi-related note, we'll need to allow |
Ok, I will. Just found that opencv-python has no build rules so far, checking to get that right as well. |
Are you referring to the entries in |
You're right that it will only ignore the top-level
|
you are absolutely right. So perhaps it's best to just remove these 2 lines from |
@stweil can you give me any information on how you were using that submodule? You said you needed it for ARM builds – GNU/Linux or Android/Linux perhaps? Also, did you (have to) build the C++ library from scratch as well, or only the Python bindings? (I am able to build and install a whl file with |
I decided not to wait for Stefan's answer (since we can still improve opencv-python build later). Fingers crossed! – yey it helped! |
Oh @kba, just one more request – it doesn't strictly belong here or in #31 either, but it's not worth a separate issue: Can you please add the editable mode Docker configurations ( |
Sure
You actually want to publish those? Is it reasonable to fetch such a docker image that is meant to be edited? I see confusion looming. But it cannot hurt to set it up. |
It's not the Docker image that is editable. It's the git repos inside it. When you run the image, your local container may make modifications. These are not meant for publication on Docker hub, on the contrary: users can then pull from upstream git repos (or make local changes themselves) instead of having to wait for new Docker images. |
Thanks! |
I understand the concept but I see a certain danger that user will pull docker image, say ocrd/all:maximum-git, instantiate it, make adaptations within that container, pull to update the maximum-git image, create a new container (where are my changes??!1!!), accidentally create her/his containers with Just saying that it is dangerous to treat by-nature ephemeral containers like virtual machines unless you know what you're doing. But until we're documenting this somewhere, it's a non-issue. |
Oh, I see what you mean. Or the inevitable Yes, (allowing) to deal with git repos gives an impression of persistence, more than any other possible modification. So the increased flexibility comes with a risk here.
Agreed. And if we do, we should mention |
This now works as intended, closing. @stweil feel free to reopen or create a new issue if those changes broke your ARM setup. |
This will fail for modules that have themselves submodules such as ocrd_olena. Why ist this not the default?
The text was updated successfully, but these errors were encountered: