-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Fix up @build_tools//tools/java package #13790
Fix up @build_tools//tools/java package #13790
Conversation
/cc @comius - apologies for the follow-up (and so late after the original)! |
2612276
to
d324457
Compare
tools/java/BUILD
Outdated
srcs = ["BUILD.for_buildtools"], | ||
outs = ["BUILD.bazel"], | ||
cmd = "cp $< $@", | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer if BUILD.tools file is added to the repo and used in the filegroup, like it's done in other directories (tools/jdk, tools/java/runfiles).
java_stub_template.txt needed genrule with cp, but in general I'd prefer it's avoided.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You also need to add BUILD.tools to srcs filegroup in tools/java/BUILD
d324457
to
31996b2
Compare
31996b2
to
882ad99
Compare
bazelbuild#12994 added the file, but it's currently exposed as: `@build_tools//tools:java/java_stub_template.txt` This fixes it up to be properly exposed as: `@build_tools//tools/java:java_stub_template.txt` Which makes more sense :)
882ad99
to
f1b22cd
Compare
This was added in bazelbuild/bazel#12994 (and fixed in bazelbuild/bazel#13790). This has been included in all Bazel releases since 5.0.0, which is the minimum supported Bazel version of rules_kotlin according to https://github.com/bazelbuild/rules_kotlin/blob/master/README.md This prevents having a build-time dependency on access to raw.githubusercontent.com.
This was added in bazelbuild/bazel#12994 (and fixed in bazelbuild/bazel#13790). This has been included in all Bazel releases since 5.0.0, which is the minimum supported Bazel version of rules_kotlin according to https://github.com/bazelbuild/rules_kotlin/blob/master/README.md This prevents having a build-time dependency on access to raw.githubusercontent.com.
This was added in bazelbuild/bazel#12994 (and fixed in bazelbuild/bazel#13790). This has been included in all Bazel releases since 5.0.0, which is the minimum supported Bazel version of rules_kotlin according to https://github.com/bazelbuild/rules_kotlin/blob/master/README.md This prevents having a build-time dependency on access to raw.githubusercontent.com.
This was added in bazelbuild/bazel#12994 (and fixed in bazelbuild/bazel#13790). This has been included in all Bazel releases since 5.0.0, which is the minimum supported Bazel version of rules_kotlin according to https://github.com/bazelbuild/rules_kotlin/blob/master/README.md This prevents having a build-time dependency on access to raw.githubusercontent.com.
#12994 added the file, but it's
currently exposed as:
@build_tools//tools:java/java_stub_template.txt
This fixes it up to be properly exposed as:
@build_tools//tools/java:java_stub_template.txt
Which makes more sense :)