Skip to content

Commit

Permalink
feat: recursively initialize external Swift packages to match SPM
Browse files Browse the repository at this point in the history
behavior
  • Loading branch information
cgrindel committed Jun 1, 2024
1 parent 63f615e commit f939c0b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions examples/interesting_deps/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,3 @@ use_repo(
"swiftpkg_swift_log",
)
# swift_deps END
swift_deps.configure_package(
name = "swiftpkg_libwebp_xcode",
init_submodules = True,
)
2 changes: 1 addition & 1 deletion swiftpkg/bzlmod/swift_deps.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ _configure_package_tag = tag_class(
mandatory = True,
),
"recursive_init_submodules": attr.bool(
default = False,
default = True,
doc = "Whether to clone submodules recursively in the repository.",
),
},
Expand Down
2 changes: 1 addition & 1 deletion swiftpkg/internal/swift_package.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ The commit or revision to download from version control.\
doc = "Whether to clone submodules in the repository.",
),
"recursive_init_submodules": attr.bool(
default = False,
default = True,
doc = "Whether to clone submodules recursively in the repository.",
),
"remote": attr.string(
Expand Down

0 comments on commit f939c0b

Please sign in to comment.