-
-
Notifications
You must be signed in to change notification settings - Fork 667
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
New runfiles library is missing listRunfiles
#3375
Comments
That said, I believe that the right approach to make something like this work is to implement @sluongng Is this something you are still interested in? @gonzojive Would you be interested in contributing support for this. Doing that only for the directory-based implementation at first would definitely be an option. If you are tired of hardcoding runfiles paths, you might also be interested in the new |
Note that without reading the implementation, I don't understand what the proper way to handle "repo mapping" is in runfiles. I suggest documenting it more in the godoc docstrings and updating the design doc. I can file a new feature request for that if desired. 2022-07-21-locating-runfiles-with-bzlmod.md looks relevant, too. I can probably eventually send a PR with this support. I'm not sure when I will get to that, though. |
@gonzojive Yes, as the author of https://github.com/bazelbuild/proposals/blob/main/designs/2022-07-21-locating-runfiles-with-bzlmod.md, I should probably take some time to merge it into the design docs. I am also working on a reference implementation that may actually be more helpful than a verbose natural language spec. Let me know when you find some time and I can provide more details about repo mappings to get you started. |
What version of rules_go are you using?
v0.36.0
What version of Bazel are you using?
5.3.2
Does this issue reproduce with the latest releases of all the above?
Yes
What operating system and processor architecture are you using?
Linux
Any other potentially useful information about your toolchain?
What did you do?
Started using the new recommended runfiles library and tried to call ListRunfiles().
What did you expect to see?
Same feature available as in the
github.com/bazelbuild/rules_go/go/tools/bazel
library.What did you see instead?
A
listRunfiles
function in the new library.My typical usage
I often mess up runfile paths. To make the error more readable, I suggest a similarly named file in the error message.
The text was updated successfully, but these errors were encountered: