Skip to content

Replace new_git_repository with git_repository#3965

Merged
UebelAndre merged 1 commit intobazelbuild:mainfrom
willstranton:main
Apr 15, 2026
Merged

Replace new_git_repository with git_repository#3965
UebelAndre merged 1 commit intobazelbuild:mainfrom
willstranton:main

Conversation

@willstranton
Copy link
Copy Markdown
Contributor

The repository rule new_git_repository has been an alias of git_repository since Bazel 6.0.0:

https://github.com/bazelbuild/bazel/blob/6.0.0/tools/build_defs/repo/git.bzl#L190

Recently, a change was made to make use of new_git_repository fail - bazelbuild/bazel@71160cb

Users should use git_repository instead, which this change does. The change should be a no-op for Bazel >= 6.0.0

The repository rule `new_git_repository` has been an alias of
`git_repository` since Bazel 6.0.0:

https://github.com/bazelbuild/bazel/blob/6.0.0/tools/build_defs/repo/git.bzl#L190

Recently, a change was made to make use of `new_git_repository` fail -
bazelbuild/bazel@71160cb

Users should use `git_repository` instead, which this change does. The
change should be a no-op for Bazel >= 6.0.0
Copy link
Copy Markdown
Collaborator

@UebelAndre UebelAndre left a comment

Choose a reason for hiding this comment

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

Thanks!

@UebelAndre UebelAndre enabled auto-merge April 15, 2026 17:13
@UebelAndre UebelAndre added this pull request to the merge queue Apr 15, 2026
Merged via the queue into bazelbuild:main with commit 5d1be37 Apr 15, 2026
3 checks passed
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