How to package a bazel project when it depends on @bazel_tools?

117 views
Skip to first unread message

Vova Anisimov

unread,
Mar 13, 2022, 4:16:24 PM3/13/22
to bazel-discuss

Hello, 

I have an example bazel project that I want to package as tar (to further distribute through homebrew etc...). The project consists of some python files, and a a run shell script.

When trying to use rules_pkg, I run into the following problem - the run script, b.sh, depends on @bazel_tools/tools/bash/runfiles/runfiles.bash to resolve the location of the binary package. @bazel_tools is not provided by default when using @rules_pkg.

What would be the correct approach for creating a distribution of the project above?

Thanks!

Reply all
Reply to author
Forward
0 new messages