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

Resolve labels in java_toolchain_default relative to java_tools repo #12408

Closed
wants to merge 2 commits into from

Conversation

comius
Copy link
Contributor

@comius comius commented Nov 3, 2020

Usecase for java_toolchain_default is:

load("@remote_java_tools_linux//:java_toolchain_default.bzl", "java_toolchain_default)
java_toolchain_default(
  name = "mytoolchain",
  javabuilder = ["//:VanillaJavaBuilder"],
)

In order to make the use easier, we need to resolve labels relatively to current repo. Otherwise the user would need to specify javabuilder = ["@remote_java_tools_linux//:VanillaJavaBuilder"].

…epo.

Usecase for java_toolchain_default is:
```
load("@remote_java_tools_linux//:java_toolchain_default.bzl", "java_toolchain_default)
java_toolchain_default(
  name = "mytoolchain",
  javabuilder = "//:VanillaJavaBuilder",
)
```

In order to make use easier, we need to resolve labels relatively to current repo. Else the user would need to specify `= @remote_java_tools_linux//:VanillaJavaBuilder`.
@google-cla google-cla bot added the cla: yes label Nov 3, 2020
@comius comius requested a review from c-mita November 3, 2020 11:34
@comius comius self-assigned this Nov 3, 2020
@comius
Copy link
Contributor Author

comius commented Nov 3, 2020

cc @plf, @lberki

@comius
Copy link
Contributor Author

comius commented Nov 3, 2020

cc @benjaminp

Copy link
Member

@c-mita c-mita left a comment

Choose a reason for hiding this comment

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

LGTM

@bazel-io bazel-io closed this in 65e818e Nov 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants