Questions tagged [bazel-rules]
The bazel-rules tag has no usage guidance.
bazel-rules
326
questions
0
votes
0
answers
22
views
How do I set a token for maven_install rule in bazel?
I'm trying to download a maven artifact using bazel with maven_install. Artifactory requires a token which I have and confirmed it works via: curl -vvv --oauth2-bearer token url. I can see the ...
0
votes
1
answer
24
views
How to set the protoc path for bazel proto_library rules?
I'm using a company repo that has our standard protobuffers in it. It does not include any build information and I can't modify the repo (though I'm going to inquire about that). I have the ...
0
votes
1
answer
26
views
How do I pass arguments to Bazel java wrapper?
I’m using Bazel to build JanusGraph. For Janusgraph to find all the config files it needs to have them on the classpath. It finds the files via File class but that can’t read from a jar. Basel docs ...
0
votes
1
answer
43
views
Bazel install python libraries
I am new to Bazel and I followed the documentation to install requirements using requirements.txt and Workspace file.
This is my workspace file
...
pip_parse(
name = "pip_dependency_1",
...
0
votes
0
answers
35
views
How to integrate custom protoc plugin with bazel?
I wrote a protoc plugin to generate custom .h and .cpp files, it works well in command-line.
protoc --plugin=protoc-gen-foo=plugin_foo.py --foo_out=output bar.proto
My project is build with bazel, ...
1
vote
1
answer
55
views
Issue Running Python Application with Bazel - ImportError with NumPy C-Extensions
I have a Python project which I am building and running with Bazel. The project includes dependencies such as flask, transformers, and numpy. When I attempt to run my application using Bazel, I ...
0
votes
1
answer
56
views
Can't load image tarball into Docker because Docker wants root user but Bazel wants non-root user
Context
I want to use Bazel to build Docker images. I'm using rules_oci, which Bazel recommends for this use case.
The rule of interest is oci_tarball. Running bazel build would create a tarball that ...
0
votes
0
answers
21
views
does bazel supports running test targets in specific order on CI builds?
Could you help clarify how to enforce a specific order for running Bazel tests on CI builds, given that the tests need to be executed sequentially due to dependencies between them? Locally, setting ...
1
vote
0
answers
50
views
is there a way to run bazel tests in required sequence?
how to enforce bazel test targets to run in specific order on CI builds? because test results of one depends on another tetss results?
I have four targets init,up,down,rm and I want to run the tests ...
0
votes
1
answer
42
views
Can Bazel autogenerate headers from custom file types?
I have 100+ files with .idl extension and I would like to use these to generate C and C++ headers. The IDL files are considered sources and the auto-generated headers are not checked in to the repo.
...
0
votes
0
answers
20
views
Building dagger from source. issue with in kt_jvm_library . Bazel Build
All builds fail with "Error in kt_jvm_library"
Error log -
ERROR: /project/dagger/java/dagger/spi/model/BUILD:36:15: in kt_jvm_library rule //java/dagger/spi/model:model:
Traceback (most ...
0
votes
1
answer
160
views
bazel query to find all test targets and test
Team,
I want to find all test targets and run them.
I tried
./bazel test $(./bazel query //...) -//src/ui/...
output:
./bazel: Argument list too long
any hint what i could be doing wrong?
1
vote
1
answer
87
views
why is bazel passing $(version) instead of the value of Version?
I am trying to pass a Version to my BUILD.bazel file so i can overwrite the variable in my main so i could print it but its not working.
go_binary(
name = "api",
embed = [":...
0
votes
1
answer
34
views
How do I share .h files between different BUILD files in Bazel?
I have the .h files in a different folder compared to where the BUILD file is present. I'm making BUILD file for each module so that the module can be reused in different projects. How do I link .h ...
0
votes
0
answers
181
views
How to use an installed requirement in bazel BUILD file?
I am creating a new bazel workspace for a python codebase. The codebase has multiple folders with respective BUILD files. Each of the BUILD file has different external dependencies. These external ...