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

Accessing files across directories #2719

@champak

Description

@champak

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 !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions