A way to get an execpath to a directory rather than a file #23139
Labels
team-Rules-API
API for writing rules/aspects: providers, runfiles, actions, artifacts
type: feature request
untriaged
Description of the feature request:
Several times, I've wanted to be able to reference an execpath to a directory, for the purposes of adding a directory containing several files to an include search path. Something along the lines of:
If you're lucky, some tools support
/..
so you can write something like:but many do not.
Note that we want to be able to be very precise about which directory is returned. In a world where you have:
@openssl//include:BUILD.bazel
:it may be important to specifically reference the execpath of
@openssl//include
notopenssl//include/headers
because of how the headers are#include
d.Which category does this issue belong to?
Rules API
Have you found anything relevant by searching the web?
See discussion in https://bazelbuild.slack.com/archives/C014RARENH0/p1722250875317499?thread_ts=1721325151.660949&cid=C014RARENH0
The text was updated successfully, but these errors were encountered: