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

Remove third_party/checker_* from the binary. #8163

Closed
wants to merge 3 commits into from

Conversation

lberki
Copy link
Contributor

@lberki lberki commented Apr 26, 2019

The binaries were there because there Java tooling needed it (until it
was moved to its own separate repository) and the sources were there for
GPL compliance (which is not the case anymore since we don't distribute
the binaries, either)

To be extra safe on the GPL compliance side, I checked with

bazel query "rdeps(//...,//third_party/checker_framework_{javacutil,dataflow})"'

whether we have any dependencies on it that might end up being
distributed; turns out, the only dependencies are JavaBuilder (which is
not distributed with Bazel anymore, as proven by the above query) and some tests.

The binaries were there because there Java tooling needed it (until it
was moved to its own separate repository) and the sources were there for
GPL compliance (which is not the case anymore since we don't distribute
the binaries, either)

To be extra safe on the GPL compliance side, I checked with 'bazel query
"rdeps(//...,//third_party/checker_framework_{javacutil,dataflow})"'
whether we have any dependencies on it that might end up being
distributed; turns out, the only dependencies are JavaBuilder (which is
not distributed with Bazel anymore) and some tests.
@lberki lberki requested review from iirina and meisterT April 26, 2019 12:58
@lberki
Copy link
Contributor Author

lberki commented Apr 26, 2019

/cc @cushon

@@ -26,8 +26,6 @@ filegroup(
"//third_party/java/jdk/langtools:srcs",
"//third_party/java/proguard:srcs",
"//third_party/javascript/bootstrap:srcs",
"//third_party/checker_framework_dataflow:srcs",
Copy link
Contributor

Choose a reason for hiding this comment

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

The targets of third_party:srcs are not all embedded into the bazel binary. IIUC this target is to keep track of the sources in the bazel repo, so I would keep them here.

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 -- I removed it just so that rdeps gives a cleaner answer.

@@ -50,8 +48,6 @@ filegroup(
filegroup(
name = "gpl-srcs",
srcs = [
"//third_party/checker_framework_dataflow:srcs",
Copy link
Contributor

Choose a reason for hiding this comment

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

Since you started this, can you also add them to the java tools dist archive? It's defined by src:java_tools_dist_java*

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.

@lberki
Copy link
Contributor Author

lberki commented Apr 26, 2019

All done!

Copy link
Contributor

@iirina iirina left a comment

Choose a reason for hiding this comment

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

Thanks!

@iirina
Copy link
Contributor

iirina commented Apr 26, 2019

third_party/ changes pushed in 51e71ef

@bazel-io bazel-io closed this in 6362c2d Apr 26, 2019
@lberki lberki deleted the lberki-remove-checker branch July 10, 2019 11:42
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.

4 participants