Learn how to retrieve the output directory of a genrule in Bazel, even when it is defined as an external. This article provides step-by-step instructions and examples to help you access the genrule's output directory in your Bazel project.