Replace deprecated bazel rule new_git_repository #2899

Closed
opened 2026-04-14 03:05:24 -05:00 by willstranton · 1 comment
willstranton commented 2026-04-14 03:05:24 -05:00 (Migrated from github.com)

Since Bazel 7.0 (and maybe even earlier), the repository rule new_git_repository has just been an alias of the git_repository rule. See github.com/bazelbuild/bazel@d798ebde6c/tools/build_defs/repo/git.bzl (L218)

Recently, a change was made to make use of new_git_repository a breaking failure. See github.com/bazelbuild/bazel@71160cb619

People should migrate away from using new_git_repository and instead use git_repository.

Since Bazel 7.0 (and maybe even earlier), the repository rule `new_git_repository` has just been an alias of the `git_repository` rule. See https://github.com/bazelbuild/bazel/blob/d798ebde6c6394203a87b5f1a6b62ecfc3880991/tools/build_defs/repo/git.bzl#L218 Recently, a change was made to make use of `new_git_repository` a breaking failure. See https://github.com/bazelbuild/bazel/commit/71160cb619b5bfeb89c91fee53bb044438ee9b3f People should migrate away from using `new_git_repository` and instead use `git_repository`.
willstranton commented 2026-04-16 14:29:10 -05:00 (Migrated from github.com)

#2900 was merged so this can now be closed.

#2900 was merged so this can now be closed.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-raspberrypi/pico-sdk#2899
No description provided.