I have generated some output files using bazel build
, but its is a bit tedious to specify the path of the bazel-bin directory everytime I need to access the output.
In deeply nested bazel projects, not only do I need to get the specific repository, /Users/username/repos/organisation/folder/folder/repo
, I also need to add the bazel-bin/folder1/folder2/folder3/folder4/binary_i_want
. I would prefer to say $output/binary_i_want
. Bazel should be able to get the project directory (as it looks up the workspace file), and find the bazel-bin
, and then look for the equivalent directory I am in. This is because I might not be running it directly, but instead copying this file to an android device, with adb push.
Is this possible? Thank you