Skip to content
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

Allow runnable_binary to work on non-external targets #1100

Merged
merged 1 commit into from Oct 14, 2023

Conversation

novas0x2a
Copy link
Contributor

Before this change, runnable_binary would only work on targets in external repositories. This is due to a limitation of the rootpath function, with more context in bazelbuild/bazel#10923

This switches the macro to use rlocationpath, which handles this use-case. Using rlocationpath requires bazel 5.4.0, so this also updates the docs accordingly.

Before this change, runnable_binary would only work on targets in
external repositories. This is due to a limitation of the rootpath
function, with more context in bazelbuild/bazel#10923

This switches the macro to use rlocationpath, which handles this
use-case. Using rlocationpath requires bazel 5.4.0, so this also updates
the docs accordingly.
Copy link
Collaborator

@jsharpe jsharpe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jsharpe jsharpe merged commit 01cf789 into bazelbuild:main Oct 14, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants