I want to know how to dump something (say, some string) to local disk. I found there's actions.write API , but seems it only creates an action, but no ...
I want to know how to dump something (say, some string) to local disk. I found there's actions.write API , but seems it only creates an action, but no ...
I write the below bazel rule for incremental test. This rule(foo_library) has a dependency property. When there are no dependencies, it creates a fil ...
I configured Pantsbuild for our Django project, and everything worked neatly. Here is my BUILD file: but when I added django-filter, and run the co ...
. Answers to this question are eligible for a +50 reputation bounty. Fr ...
I'd like to migrate away from --define flags and to build settings per: https://docs.bazel.build/versions/5.0.0/skylark/config.html Here's the rule t ...
I have a general question about how to make filegroup into a declare_directory. So what I can think about is like, filegroup -> pkg_tar -> unta ...
Consider I have a py_binary : If mock.py accept a command line argument named --somearg using argument parser how can I pass this argument through ...
The Starlark configuration language does not support infinite loops or recursion or user defined data types but it does support functions. The docs in ...
i am new to Visual studio Code. I followed this tutorial to set up a Bazel build configuration in Visual studio code (I use Windows 10). I created a ...
I followed the tutorial https://www.influxdata.com/blog/json-to-influxdb-with-telegraf-and-starlark/ to get started with Telegraf and Starlark. I get ...
I am trying to write a custom rule, where I first generate a file from a template, then pass this file to a script to generate some c++ headers that a ...
I'm looking for a way to round the values output from telergaf. Temperature, usage_idle, memory_usage, etc... to 14 decimals is very huge. It too much ...
When I use bazel to generate c++ header source code and winmd file from midl file, I found MyType.winmd file is in output folder, while MyType.h locat ...
I'm writing analysis-time tests for my project as per https://docs.bazel.build/versions/master/skylark/testing.html and I'm wondering what the most us ...
What is the best way to refer to an external package's path in any arbitrary files processed by Bazel? I'm trying to understand how Bazel preprocesse ...
After downloading an archive throug http_archive I'd like to run a script to generate a BUILD file from the folder structure and Cmake files in it (I ...
For example, is there a way to call the constructor of File class to create an instance of it? ...
I'm writing some validation code for a bazel build rule and I need to do some path validation. I need to check that a certain file exists in the same ...
I am trying to reference an output of a rule that is nested inside an output directory of another rule in a genrule. For example, I use rules_foreign ...
I have several k8s_object rules in my project and I supply each of them with the same cluster name like this: So whenever I want to change the clus ...