File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -373,7 +373,7 @@ There are some more examples of using crate_universe with bzlmod in the [example
373373
374374load ("@bazel_features//:features.bzl" , "bazel_features" )
375375load ("@bazel_skylib//lib:structs.bzl" , "structs" )
376- load ("@bazel_tools//tools/build_defs/repo:git.bzl" , "new_git_repository " )
376+ load ("@bazel_tools//tools/build_defs/repo:git.bzl" , "git_repository " )
377377load ("@bazel_tools//tools/build_defs/repo:http.bzl" , "http_archive" )
378378load (
379379 "//crate_universe/private:common_utils.bzl" ,
@@ -758,7 +758,7 @@ def _generate_hub_and_spokes(
758758 kwargs ["commit" ] = v
759759 else :
760760 kwargs [k .lower ()] = v
761- new_git_repository (
761+ git_repository (
762762 name = crate_repo_name ,
763763 init_submodules = True ,
764764 patch_args = repo .get ("patch_args" , None ),
Original file line number Diff line number Diff line change @@ -345,7 +345,7 @@ pub(crate) struct CrateAnnotations {
345345 pub ( crate ) additive_build_file_content : Option < String > ,
346346
347347 /// For git sourced crates, this is a the
348- /// [git_repository::shallow_since](https://docs.bazel.build/versions/main/repo/git.html#new_git_repository -shallow_since) attribute.
348+ /// [git_repository::shallow_since](https://docs.bazel.build/versions/main/repo/git.html#git_repository -shallow_since) attribute.
349349 pub ( crate ) shallow_since : Option < String > ,
350350
351351 /// The `patch_args` attribute of a Bazel repository rule. See
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ Expected length = 6 lines
1414
1515"""
1616
17- load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository ")
17+ load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository ")
1818load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
1919load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
2020load("@bazel_skylib//lib:selects.bzl", "selects")
Original file line number Diff line number Diff line change 11 maybe(
2- new_git_repository ,
2+ git_repository ,
33 name = "{{ crate_repository(name = crate.name, version = crate.version) }}",
44 {% - for type , commitish in attrs .commitish %}
55 {% - if type in ["Rev" ] %}
You can’t perform that action at this time.
0 commit comments