As a bazel user for several months, I really appreciate the work of the bazel team. Would like to express my thanks here first!
Based on my experience, the most difficult part of getting bazel started on your project is about importing those third party dependencies, to be specific - writing the bazel rules for them. Most of the 3rd-party libraries do not use bazel as its build system. To name a few: glog, opencv, gtest ...
I understand that ideally, the best solution to this would be having the libraries themselves to provide bazel build as an alternative to, say, CMake. However, this cannot be achieved in a short period of time. I am wondering whether instead there is already a repo that contains the bazel build rules for well-known libraries. It might be maintained by the community, with a WORKSPACE file, BUILD files for the libraries, and even some test rules. I think this can help more people adopt bazel quickly :)
Just my 2 cents. Thanks!
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/64b6e291-a60e-4263-a398-72fd108c3bd4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
One downside of not having the bazel build in the original libraries is that the build file can get stale without some one updating them together with the updates on the libraries themselves. An official repo hosting those build rules might attract enough people from the community to keep it up-to-date ~
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/4ed222b6-3162-48f2-b2cd-445636d23ce6%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/4ed222b6-3162-48f2-b2cd-445636d23ce6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CANHKq5Fkot-mVmfZ%2B%3DZKhxfOa5hscR5p8SLJXXhVqnQ%2BV8jPyg%40mail.gmail.com.To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discuss+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discuss+unsubscribe@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/a201e520-c264-4282-9870-7f26c0152ca4%40googlegroups.com.
Is the desired intent here to have a monolithic repository of source code or a registry of repositories which contain source code?In the former case, that would be creating new problems that dont currently exist, required manual moderation to get new source code from external contributors in and making the repository that contains source code inherently more difficult to manage.The latter class would be ideal ( eg crates.io) where publishing content and consuming content require no manual moderation and can evolve much more quickly as independent versioned components in the ecosystem.I think what's actually needed in the 3rd party bazel ecosystem is discoverability. Is that the goal here?
On Jun 12, 2017 9:15 AM, "'Steren Giannini' via bazel-discuss" <bazel-...@googlegroups.com> wrote:Hi,I am sharing an update:We met a few weeks ago on this topic, you can read the meeting notes here. Feel free to add comments.I created a repository that we will use to store Bazel configuration files and metadata for open source libraries: https://github.com/bazelbuild/bazel-packagesDavid has started a design document outlining how to organize the repo, I will let him share it when it is ready for review.Steren--You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/a201e520-c264-4282-9870-7f26c0152ca4%40googlegroups.com.
Is the desired intent here to have a monolithic repository of source code or a registry of repositories which contain source code?
Hi,To add to what Steren said, the plan is to ultimately have a service similar to Crates.io. The repository that Steren mentioned is not a monolithic repository of source code but more repository of "recipes." It contains metadata in addition to BUILD and WORKSPACE files for each package.The doc that I will be sharing details the structure of this package repository and the schema for the metadata. We will also be having further discussions about the command line tools and build rules for adding packages as well as a web interface for browsing packages, similar to Crates.io and other services.
Thanks,David
On Mon, Jun 12, 2017 at 12:48 PM Markus Teufelberger <markusteu...@gmail.com> wrote:
Am Montag, 12. Juni 2017 15:34:53 UTC+2 schrieb Doug Tangren:Is the desired intent here to have a monolithic repository of source code or a registry of repositories which contain source code?
As far as I am concerned, I'd rather have no source code beyond internal tools at all in there, only "recipes" to go from a certain published state of source code to a compiled binary.
Basically the answer to the question "What do I put in the 'build_file' section of new_http_archive or new_git_repository for version X of library Y?". Everything beyond that ("Does version X of library Y work with version foo of library bar or not?") is then up to the developer to decide and resolve. After all, developers might have a quite good understanding how their own code should be compiled, but probably don't want to investigate first for every single dependency they have how to compile that code.
What I also hope that this could help with is to give examples for how to write good BUILD files and how to test them.
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CAHb-%3DNLHqx9u-R%3DcEvu%2BK9uNegzKoBNze%3D3Yj379TzTPt8Vrng%40mail.gmail.com.
On Jun 12, 2017 3:59 PM, "'David Chen' via bazel-discuss" <bazel-...@googlegroups.com> wrote:Hi,To add to what Steren said, the plan is to ultimately have a service similar to Crates.io. The repository that Steren mentioned is not a monolithic repository of source code but more repository of "recipes." It contains metadata in addition to BUILD and WORKSPACE files for each package.The doc that I will be sharing details the structure of this package repository and the schema for the metadata. We will also be having further discussions about the command line tools and build rules for adding packages as well as a web interface for browsing packages, similar to Crates.io and other services.Awesome. Crates.io does an amazing job at both reducing friction for sharing work and discovering work. I look forward to a similar community in the bazel world.
Thanks,David
--On Mon, Jun 12, 2017 at 12:48 PM Markus Teufelberger <markusteu...@gmail.com> wrote:
Am Montag, 12. Juni 2017 15:34:53 UTC+2 schrieb Doug Tangren:Is the desired intent here to have a monolithic repository of source code or a registry of repositories which contain source code?
As far as I am concerned, I'd rather have no source code beyond internal tools at all in there, only "recipes" to go from a certain published state of source code to a compiled binary.
Basically the answer to the question "What do I put in the 'build_file' section of new_http_archive or new_git_repository for version X of library Y?". Everything beyond that ("Does version X of library Y work with version foo of library bar or not?") is then up to the developer to decide and resolve. After all, developers might have a quite good understanding how their own code should be compiled, but probably don't want to investigate first for every single dependency they have how to compile that code.
What I also hope that this could help with is to give examples for how to write good BUILD files and how to test them.
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
Yes we need to
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/875a46bc-8b72-4e51-abb0-8f6388ef389a%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/4eb2624e-7d58-42f9-9fa7-6be2f84cc32a%40googlegroups.com.