Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Accessing files across directories #2719

Open
champak opened this issue Jul 29, 2022 · 0 comments
Open

Accessing files across directories #2719

champak opened this issue Jul 29, 2022 · 0 comments

Comments

@champak
Copy link

champak commented 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 !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant