Skip to content

Replace new_git_repository with git_repository#3965

Open
willstranton wants to merge 1 commit intobazelbuild:mainfrom
willstranton:main
Open

Replace new_git_repository with git_repository#3965
willstranton wants to merge 1 commit intobazelbuild:mainfrom
willstranton:main

Conversation

@willstranton
Copy link
Copy Markdown

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
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.

1 participant