Skip to content

Commit

Permalink
Mark m4_toolchain_repository attr m4_repository mandatory.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: db4232ebbbb58f9410074ecd20370411a5131a12
  • Loading branch information
jmillikin committed May 14, 2023
1 parent 513d572 commit 1d21cac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules_m4.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ register_toolchains("@m4//:toolchain")
| Name | Description | Type | Mandatory | Default |
| :------------- | :------------- | :------------- | :------------- | :------------- |
| <a id="m4_toolchain_repository-name"></a>name | A unique name for this repository. | <a href="https://bazel.build/concepts/labels#target-names">Name</a> | required | |
| <a id="m4_toolchain_repository-m4_repository"></a>m4_repository | The name of an [<code>m4_repository</code>](#m4_repository). | String | optional | <code>""</code> |
| <a id="m4_toolchain_repository-m4_repository"></a>m4_repository | The name of an [<code>m4_repository</code>](#m4_repository). | String | required | |
| <a id="m4_toolchain_repository-repo_mapping"></a>repo_mapping | A dictionary from local repository name to global repository name. This allows controls over workspace dependency resolution for dependencies of this repository.&lt;p&gt;For example, an entry <code>"@foo": "@bar"</code> declares that, for any time this repository depends on <code>@foo</code> (such as a dependency on <code>@foo//some:target</code>, it should actually resolve that dependency within globally-declared <code>@bar</code> (<code>@bar//some:target</code>). | <a href="https://bazel.build/rules/lib/dict">Dictionary: String -> String</a> | required | |


Expand Down
1 change: 1 addition & 0 deletions m4/rules/m4_toolchain_repository.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ register_toolchains("@m4//:toolchain")
attrs = {
"m4_repository": attr.string(
doc = "The name of an [`m4_repository`](#m4_repository).",
mandatory = True,
),
},
)

0 comments on commit 1d21cac

Please sign in to comment.