-
Notifications
You must be signed in to change notification settings - Fork 232
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
Possible to use boost git repos + commit hash instead of tarball? #9
Comments
Ah, maybe I didn't express myself clearly: Instead of using Lines 125 to 134 in 0be1390
I'd like you to use https://github.com/bazelbuild/bazel/blob/master/tools/build_defs/repo/git.bzl rules instead, so it is easier to choose the version of boost to build against. In the beginning you hosted your own tarball of boost, they nowadays seem at least to also ship it in an official location too, so it has already gotten better. It might still be nice to say that a project uses "Boost::foo at commit 1234abcd and Boost::bar at commit 5678ef90" instead of having the full boost tarball loaded all the time, but that's maybe not as important nowadays. |
Whoops, my bad! That |
Is this still something people are interested in? Modularized boost has a nice layout and actually results in simpler rules, but the submodule init seems way too slow... |
Is mixing different versions of Boost modules even desirable? I don't think downloading time is an issue as you're unlikely to do that often, but I don't really see any value in not downloading the whole tarball for that exact same reason. |
Yeah, picking and choosing different versions of different boost libraries doesn't seem all that desirable. If we had the modularized build, it would be easy to create your own git repo with the submodules pointing to different places if you really wanted to. So this feature request is to basically just support the structure found at https://github.com/boostorg/boost? |
I didn't mean using a different version of each library, but at least a different version of Boost (e.g. all boost 1.65 libraries or all boost 1.69 libraries). Currently this is pinned to a single version: Line 231 in 29d1426
|
Because of the if on line 224 of that file, you can already override that if you want. Not the cleanest way, but you can copy/paste that |
Unfortunately, available files change between boost releases...in my experience the included I think we would probably need a different approach to writing and maintaining the rules if we wanted to support multiple versions of boost in the same |
Apparently, this suffers from the same issue: bazel-contrib/rules_foreign_cc#510 |
Right now you seem to pull from your own mirror, which is not sustainable and a bit hard to keep up-to-date.
With git repos there might also be a chance to expose more than a single version of boost, by pinning various different commit hashes to different library versions.
The text was updated successfully, but these errors were encountered: