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

Generate rules_java http_archive() instances from distdir_deps.bzl. #12787

Closed
wants to merge 39 commits into from

Conversation

aiuto
Copy link
Contributor

@aiuto aiuto commented Jan 8, 2021

This consolidates the specification of the rules_java we depend on into a single place. We generate http_archive() stanzas for the main WORKSPACE as well as test harnesses from that, rather than keeping 3 instances in sync by hand. The old practice was error prone because you had to know about all the locations, and an update to one might not break the others immediately, but could be a lurking alignment problem.

This continues the work on #12081.

aiuto added 30 commits December 18, 2020 16:15
Create a capability to generate WORKSPACE files for tests at build time,
based on the repository definitions in distdir_deps.bzl.

This makes it possible for the versions of repositories used in tests
to align with the versions used a Bazel build time without upddating
files scattered throughout the source and test trees.

Demonstrated with rules_cc.
…srcs.tar

This makes me think that the overall distfile build test is broken.
You should be able to regenerate these files from the sources.
@google-cla google-cla bot added the cla: yes label Jan 8, 2021
@aiuto aiuto requested review from meteorcloudy and comius January 8, 2021 05:16
@aiuto
Copy link
Contributor Author

aiuto commented Jan 8, 2021

I expect the import CL will be somewhat painful because of copybara oddity.

@comius
Copy link
Contributor

comius commented Jan 8, 2021

Nice job!

@bazel-io bazel-io closed this in b15a8b4 Jan 8, 2021
@aiuto aiuto deleted the java_dep branch January 12, 2021 03:18
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.

3 participants