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

Fix up @build_tools//tools/java package #13790

Closed

Conversation

illicitonion
Copy link
Contributor

#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 :)

@google-cla google-cla bot added the cla: yes label Aug 2, 2021
@illicitonion
Copy link
Contributor Author

/cc @comius - apologies for the follow-up (and so late after the original)!

@illicitonion illicitonion marked this pull request as draft August 2, 2021 16:23
@illicitonion illicitonion marked this pull request as ready for review August 2, 2021 17:17
tools/java/BUILD Outdated
srcs = ["BUILD.for_buildtools"],
outs = ["BUILD.bazel"],
cmd = "cp $< $@",
)
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

Copy link
Contributor

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

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 :)
@bazel-io bazel-io closed this in 14a9600 Aug 4, 2021
@illicitonion illicitonion deleted the fix-java-stub-template branch August 4, 2021 14:29
illicitonion added a commit to illicitonion/rules_kotlin that referenced this pull request Dec 5, 2023
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.
illicitonion added a commit to illicitonion/rules_kotlin that referenced this pull request Dec 5, 2023
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.
illicitonion added a commit to illicitonion/rules_kotlin that referenced this pull request Dec 5, 2023
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.
restingbull pushed a commit to bazelbuild/rules_kotlin that referenced this pull request Dec 8, 2023
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.
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