#2719·buck

Accessing files across directories

Author: champakCreated Jul 29, 2022Updated Jul 29, 2022

Hi folks, I am looking for advice on how tp go “across” dirs with buck/bzl

My files are organized as follows: Foo/tests/< a template test file> Foo/srcs/< source files>

I want to create a test target per source file based off the template test file. I would like to glob the files under srcs from a BZL macro in tests. What is a good way to go about it ? I run into package boundary complaints if I try to glob at the files under srcs from tests. Is there some way tp export files from srcs so they are visible in tests ? I want to be able to process these files in a BZL macro in tests to instantiate the test targets.

Thanks for any pointers !