Relative path for test data #19558
blackliner
started this conversation in
General
Replies: 1 comment
-
Sounds like you are looking for https://bazel.build/extending/rules#runfiles, basically you can specify your data dependencies through the It's also recommended to use the runfiles libraries to access them: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to reference my
data.json
in a "package local" way, instead of having to put in the whole absolute path from the WORKSPACE root? Having the full path makes it difficult to use the same code that runs in the bazel workspace vs final deployments.Is there maybe a way to tell bazel to copy the data files right next to the binaries?
Beta Was this translation helpful? Give feedback.
All reactions