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

Add option to git_repository to provide build file / content #16064

Closed
wants to merge 1 commit into from

Conversation

limdor
Copy link
Contributor

@limdor limdor commented Aug 7, 2022

This is just a first draft from the discussion we had with @aiuto in https://groups.google.com/g/bazel-dev/c/sfeRE3Ucj7E just to see what the CI says about it.
Before this can be proposed to be merged, I see several topics to tackle:

  • When new_git_repository rule should be removed?
  • Can it be deprecated in a way that is not just text in the documentation?
  • Should this PR already replace the internal references to new_git_repository to git_repository or should be done when removing the new_git_repository?

Probably we should also create an issue to track it.

@aiuto aiuto self-assigned this Aug 8, 2022
@aiuto aiuto self-requested a review August 14, 2022 03:00
tools/build_defs/repo/git.bzl Show resolved Hide resolved
@aiuto
Copy link
Contributor

aiuto commented Aug 15, 2022

I'll merge this.

aiuto pushed a commit to aiuto/bazel that referenced this pull request Oct 12, 2022
This PR moves the extra features of new_git_repository to git_repository
and makes new_git_repository and alias to git_repository.  A side effect
is that new_git_repository should disappear from documentation.

Discussion: https://groups.google.com/g/bazel-dev/c/sfeRE3Ucj7E

Future work:
- Wait until Bazel 6.x goes out, then remove the new_git_repository alias

Closes bazelbuild#16064.

PiperOrigin-RevId: 467925617
Change-Id: I94508f559f84721f7bb880323d1dd53c6e19682b
copybara-service bot pushed a commit that referenced this pull request Mar 16, 2023
Requiring either `build_file` or `build_file_content` is no longer true after
#16064

PiperOrigin-RevId: 517095299
Change-Id: Ifd32a50b633345048c1ee620d1883637ce85391f
fweikert pushed a commit to fweikert/bazel that referenced this pull request May 25, 2023
Requiring either `build_file` or `build_file_content` is no longer true after
bazelbuild#16064

PiperOrigin-RevId: 517095299
Change-Id: Ifd32a50b633345048c1ee620d1883637ce85391f
fhanau added a commit to cloudflare/workerd that referenced this pull request Jan 19, 2024
- Based on bazelbuild/bazel#16064 git_repository
  supports the same arguments as new_git_repository and the latter
  should no longer be used.
- Update documentation to reflect that v8 is now used as a http_archive
  dependency.
fhanau added a commit to cloudflare/workerd that referenced this pull request Jan 23, 2024
- Based on bazelbuild/bazel#16064 git_repository
  supports the same arguments as new_git_repository and the latter
  should no longer be used.
- Update documentation to reflect that v8 is now used as a http_archive
  dependency.
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.

2 participants