You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The previous snippet should succeed without error and return the runfiles path for my_repo or my_repo/my_pkg.
What did you see instead?
The call to Rlocation() returnes an error for runfiles paths like directories which are not files. This works in the runfiles implementation of other programming languages like C++:
Rlocation is not a good place for this as it's not necessarily true that all entries looked up via repo/X are actually in one physical directory on disk. Whether this works depends on the backing runfiles implementation (directory vs. manifest).
Rlocation is not a good place for this as it's not necessarily true that all entries looked up via repo/X are actually in one physical directory on disk. Whether this works depends on the backing runfiles implementation (directory vs. manifest).
We only use Linux, so it should always be directory IIUC.
This is what we are doing as a workaround but this doesn't exist in other languages likek C++ and Python. We would prefer to have our approaches aligned to make it easier for our developers switching between different languages.
What version of rules_go are you using?
0.50.1
What version of gazelle are you using?
0.39.1
What version of Bazel are you using?
7.0.2
Does this issue reproduce with the latest releases of all the above?
What operating system and processor architecture are you using?
Linux
Any other potentially useful information about your toolchain?
What did you do?
What did you expect to see?
The previous snippet should succeed without error and return the runfiles path for
my_repo
ormy_repo/my_pkg
.What did you see instead?
The call to
Rlocation()
returnes an error for runfiles paths like directories which are not files. This works in the runfiles implementation of other programming languages like C++:The text was updated successfully, but these errors were encountered: