-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data dependencies make reference to workspace #22162
Comments
Which Bazel version are you using? I tested on Bazel 7.1.2 and I could see that |
@Wyverald the path depends on whether you are importing the dependency from This is using Basel 7.1.2. |
That is true. @fmeum do you know if the runfiles library works with |
Yes, runfiles libraries generally also support tests via +1 to fixing up the docs. |
@fmeum is there a way for |
You can reference a file in it and then walk up from there. Directory lookups could be added, but that would require a filesystem abstraction that I'm not sure is feasible to implement on C++ ( |
Having to reference a file, the fact that at the moment there is a (maybe bad) alternative for which this is not needed, makes the option of just using |
Page link:
https://bazel.build/concepts/dependencies#data-dependencies
Problem description (include actual vs expected text, if applicable):
The page in the link reads
The reference to
workspace
in this link would make you believe that you can make a reference to any workspace, including the workspace for any dependency.Eg. Say you have a dependency
foo
. This dependency has aBUILD
file at the root that readsSay that
@foo//:bar
contains 1000s of files.Then you have a
cc_test
that you would like to use the files from@foo//:bar
.then following the doc, I would expect for
${TEST_SRCDIR}/foo/man
to be reference to the man directory in@foo//:bar
(for completeness, say that the workspace name of@foo
is"foo"
).This is not the case (and my understanding is that this is not the expected behaviour).
Where do you see this issue? (include link to specific section of the page, if applicable)
No response
Any other information you'd like to share?
No response
The text was updated successfully, but these errors were encountered: