Skip to content

Commit ec582ce

Browse files
authored
Align module name with name in registry (#5)
Otherwise you will get the following error when trying to use module with bazel_dep: ERROR: in module dependency chain <root> -> score_bazel_tools_python@0.1.1: the MODULE.bazel file of score_bazel_tools_python@0.1.1 declares a different name (bazel_tools_python)
1 parent 5d85772 commit ec582ce

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

MODULE.bazel

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
# SPDX-License-Identifier: Apache-2.0
1212
# *******************************************************************************
1313
module(
14-
name = "bazel_tools_python",
14+
name = "score_bazel_tools_python",
1515
version = "0.1.1",
1616
compatibility_level = 0,
17+
repo_name = "bazel_tools_python",
1718
)
1819

1920
# Checker rule for CopyRight checks/fixs

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Add this to your `MODULE.bazel` file.
8787
```python
8888
# MODULE.bazel
8989

90-
bazel_dep(name = "bazel_tools_python", version = "<version>")
90+
bazel_dep(name = "score_bazel_tools_python", version = "<version>", repo_name = "bazel_tools_python")
9191
```
9292

9393
To generate Bazel integrity value, one can use the following command:

0 commit comments

Comments
 (0)