I have a `BUILD` file in a directory that wants to...
# general
d
I have a
BUILD
file in a directory that wants to reference a target registered in a
BUILD
file in a parent directory. Is it possible to do this with relative addresses at all? Basically, I want to do something like this:
../:app_files
where
:app_files
is the target registered in the parent directory's
BUILD
file. I'm getting this in the error message: It has an un-normalized path part:
".."
.
I assume the answer is "you can't do that" based on this
b
Yeah. You can/should hardcode the absolute path or maybe use https://www.pantsbuild.org/2.21/reference/build-file-symbols/build_file_dir
d
Oh,
build_file_dir
will work perfectly. Thank you!