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

incompatible_load_java_rules_from_bzl breaks bazel_tools/tools/jdk/BUILD #9082

Closed
aiuto opened this issue Aug 5, 2019 · 1 comment
Closed
Labels
P1 I'll work on this now. (Assignee required) team-Rules-Java Issues for Java rules type: bug

Comments

@aiuto
Copy link
Contributor

aiuto commented Aug 5, 2019

Description of the problem / feature request:

Using the flag breaks build_defs/tools/jdk:dummy_java_runtime, making it impossible to test

.../external/bazel_tools/tools/jdk/BUILD:53:1: in java_runtime rule @bazel_tools//tools/jdk:dummy_java_runtime: The native Java rules are deprecated. Please load java_runtime from the rules_java repository. See http://github.com/bazelbuild/rules_java.
Analyzing: 7 targets (15 packages loaded, 61 targets configured)
ERROR: Analysis of target '//:my_rule_doc.md' failed; build aborted: Analysis of target '@bazel_tools//tools/jdk:dummy_java_runtime' failed; build aborted

Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

git clone git@github.com:bazelbuild/bazel-federation.git
cd bazel-federation/examples/stardoc
bazel build --incompatible_load_java_rules_from_bzl :*

Replace this line with your answer.

What operating system are you running Bazel on?

linux

What's the output of bazel info release?

0.28.1

@aiuto aiuto added team-Rules-Java Issues for Java rules untriaged labels Aug 5, 2019
@aiuto aiuto added this to the 1.0 milestone Aug 5, 2019
@iirina iirina added P1 I'll work on this now. (Assignee required) and removed untriaged labels Aug 6, 2019
@jin jin added the type: bug label Apr 28, 2020
@jin jin unassigned iirina Apr 28, 2020
@meisterT meisterT removed this from the 1.0 milestone May 12, 2020
@comius
Copy link
Contributor

comius commented Nov 20, 2020

We gave up on this flag... it is going to be removed.

@comius comius closed this as completed Nov 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 I'll work on this now. (Assignee required) team-Rules-Java Issues for Java rules type: bug
Projects
None yet
Development

No branches or pull requests

5 participants