Skip to main content

Questions tagged [bazel-rules]

The tag has no usage guidance.

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 ...
gph's user avatar
  • 1,218
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 ...
gph's user avatar
  • 1,218
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 ...
gph's user avatar
  • 1,218
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", ...
CS Diary's user avatar
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, ...
Ginakira's user avatar
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 ...
ModiCnvrg's user avatar
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 ...
José Alvarado Torre's user avatar
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 ...
Sivakumar's user avatar
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 ...
Sivakumar's user avatar
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. ...
nhaas's user avatar
  • 1
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 ...
chaitanyad's user avatar
  • 1,008
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?
AhmFM's user avatar
  • 1,744
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 = [":...
Amine Hadid's user avatar
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 ...
Krishna Joshi's user avatar
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 ...
Nisha Tiwari's user avatar

15 30 50 per page
1
2 3 4 5
22