-
Notifications
You must be signed in to change notification settings - Fork 194
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
Shared submodules in the vg tree are at different versions in different copies #3337
Comments
Edit: I figured this can't be that hard, I should try to make a PR myself. cc @nicolaprezza @karasikov because I can't figure out who would know the correct way to set up the includes;
|
Ok, looking at the output of
yields the following value for Listing that directory after a build yields:
So something is wrong, because the source doesn't get copied there. |
Open PR: xxsds/DYNAMIC#28 |
To clarify an earlier point, the quote in the original posts shows duplicates with differring versions not only for hopscotch, but other submodules. |
@deliciouslytyped Is there a way to keep these in sync sensibly? Does CMake maybe have a pattern we can use where you can have several repos, each of which can build in isolation, but which can also build in a project together without introducing multiple versions of shared dependencies? Can we pull in something from Nix to manage our build process? So far we've been ignoring the multiple-versions problem except when it manifests as CI failures, but you're right that it's a source of trouble waiting to happen. |
vg
downloads thehopscotch_map
repository at runtime. There is no immediately visible reason why this is necessary, and is also inconsistent with the approach of vendoring dependencies in submodules in thedeps
folder. *This build time downloading is a problem for builds run in the Nix build sandbox, since to ensure determinism, network access is prohibited.
I would ask, as discussed, if it's technically feasible, to modify the build so that for example,
hopscotch_map
is also a vendored submodule, since that seems to work.As a sidenote, interestingly enough,
hopscotch_map
already seems to be a dependency in some of the other submodules(, and some of the versions of submodules are different (this can be seen by looking at the output ofgit submodule status --recursive
, though I'm not sure if this is actually a problem)).* I didn't realize DYNAMIC is also a submodule that is a library, I just assumed it was an oddly named directory for deps that were downloaded at build-time (which is wrong), since it was the only case of this. Should I move this issue to the DYNAMIC repo?
The text was updated successfully, but these errors were encountered: