Skip to content

bzl: add http_archive to bazel-example #599

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

Merged
merged 1 commit into from
Jun 27, 2023
Merged

Conversation

jhchabran
Copy link
Contributor

@jhchabran jhchabran commented Jun 27, 2023

The http_archive rule was missing which can lead to confusing errors when the users tries to write the rule themselves and forget about strip_prefix, as the .bazelignore from this repo will suddenly stop matching the examples folder, leading to build errors about the example itself.

Test plan

Tested with the example repo from bazel/java docs.

@jhchabran jhchabran requested review from olafurpg and keynmol June 27, 2023 14:28
Copy link
Contributor

@keynmol keynmol left a comment

Choose a reason for hiding this comment

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

I confirmed that with this change I was able to index a sample Bazel repo (version had to be 5.2.x though)

This also fills the gap in the docs which point to this file which actually didn't contain the required information.

Thank you so much @jhchabran

@keynmol keynmol merged commit a28db33 into main Jun 27, 2023
@keynmol keynmol deleted the jh/add-http_archive-to-example branch June 27, 2023 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants