You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| <aid="swift_update_packages-name"></a>name | The name of the <code>resolve</code> target as a <code>string</code>. The target name for the <code>update</code> target is derived from this value by appending <code>_to_latest</code>. | none |
31
-
| <aid="swift_update_packages-gazelle"></a>gazelle | The label to <code>gazelle_binary</code> that includes the <code>rules_swift_package_manager</code> Gazelle extension. | none |
32
-
| <aid="swift_update_packages-package_manifest"></a>package_manifest | Optional. The name of the Swift package manifest file as a <code>string</code>. | <code>"Package.swift"</code> |
33
-
| <aid="swift_update_packages-swift_deps"></a>swift_deps | Optional. The name of the Starlark file that should be updated with the Swift package dependencies as a <code>string</code>. | <code>"swift_deps.bzl"</code> |
34
-
| <aid="swift_update_packages-swift_deps_fn"></a>swift_deps_fn | Optional. The name of the Starlark function in the <code>swift_deps</code> file that should be updated with the Swift package dependencies as a <code>string</code>. | <code>"swift_dependencies"</code> |
35
-
| <aid="swift_update_packages-swift_deps_index"></a>swift_deps_index | Optional. The relative path to the Swift dependencies index JSON file. This path is relative to the repository root, not the location of this declaration. | <code>"swift_deps_index.json"</code> |
36
-
| <aid="swift_update_packages-update_bzlmod_use_repo_names"></a>update_bzlmod_use_repo_names | Optional. Determines whether the Gazelle extension updates the use_repo names to MODULE.bazel. | <code>False</code> |
37
-
| <aid="swift_update_packages-print_bzlmod_stanzas"></a>print_bzlmod_stanzas | Optional. Determines whether the Gazelle extension prints out bzlmod Starlark code that can be pasted into your <code>MODULE.bazel</code>. | <code>False</code> |
38
-
| <aid="swift_update_packages-update_bzlmod_stanzas"></a>update_bzlmod_stanzas | Optional. Determines whether the Gazelle extension adds/updates the bzlmod Starlark code to MODULE.bazel. | <code>False</code> |
39
-
| <aid="swift_update_packages-bazel_module"></a>bazel_module | Optional. The relative path to the <code>MODULE.bazel</code> file. | <code>"MODULE.bazel"</code> |
40
-
| <aid="swift_update_packages-generate_swift_deps_for_workspace"></a>generate_swift_deps_for_workspace | Optional. Determines whether to generate the swift dependencies for clients using legacy/WORKSPACE loaded dependencies. | <code>True</code> |
41
-
| <aid="swift_update_packages-patches_yaml"></a>patches_yaml | Optional. The path to a YAML file with patch information for the Swift packages. The keys are the Swift package identity and the values are the patch parameters (see <code>gazelle/internal/swift/patch.go</code> for details on the fields). | <code>None</code> |
42
-
| <aid="swift_update_packages-kwargs"></a>kwargs | Attributes that are passed along to the gazelle declarations. | none |
21
+
Generates a Swift dependencies index file that is used by other tooling (e.g., Swift Gazelle plugin).
22
+
23
+
**ATTRIBUTES**
24
+
25
+
26
+
| Name | Description | Type | Mandatory | Default |
| <aid="swift_deps_index-name"></a>name | A unique name for this target. | <ahref="https://bazel.build/concepts/labels#target-names">Name</a> | required ||
29
+
| <aid="swift_deps_index-direct_dep_pkg_infos"></a>direct_dep_pkg_infos | The <code>pkg_info.json</code> files for the direct dependencies. | <ahref="https://bazel.build/concepts/labels">List of labels</a> | optional | <code>[]</code> |
0 commit comments