Skip to content

Commit

Permalink
Stop using repo_name
Browse files Browse the repository at this point in the history
Now that support for WORKSPACE has been removed, we can refer to modules
using the original names.
  • Loading branch information
EdSchouten committed Sep 19, 2024
1 parent 55d4354 commit 29fe09e
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 12 deletions.
3 changes: 1 addition & 2 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
module(
name = "rules_jsonnet",
version = "0.6.0",
repo_name = "io_bazel_rules_jsonnet",
)

bazel_dep(name = "bazel_skylib", version = "1.7.1")
bazel_dep(name = "jsonnet", version = "0.20.0")
bazel_dep(name = "jsonnet_go", version = "0.20.0", repo_name = "google_jsonnet_go")
bazel_dep(name = "jsonnet_go", version = "0.20.0")
bazel_dep(name = "rules_rust", version = "0.50.1")

jsonnet = use_extension("//jsonnet:extensions.bzl", "jsonnet")
Expand Down
8 changes: 4 additions & 4 deletions docs/jsonnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Example:
`configs/BUILD`:

```python
load("@io_bazel_rules_jsonnet//jsonnet:jsonnet.bzl", "jsonnet_library")
load("@rules_jsonnet//jsonnet:jsonnet.bzl", "jsonnet_library")

jsonnet_library(
name = "configs",
Expand Down Expand Up @@ -104,7 +104,7 @@ Example:
`workflows/BUILD`:

```python
load("@io_bazel_rules_jsonnet//jsonnet:jsonnet.bzl", "jsonnet_library")
load("@rules_jsonnet//jsonnet:jsonnet.bzl", "jsonnet_library")

jsonnet_library(
name = "workflow",
Expand Down Expand Up @@ -260,7 +260,7 @@ Example:

```python
load(
"@io_bazel_rules_jsonnet//jsonnet:jsonnet.bzl",
"@rules_jsonnet//jsonnet:jsonnet.bzl",
"jsonnet_library",
"jsonnet_to_json_test",
)
Expand Down Expand Up @@ -308,7 +308,7 @@ Example:

```python
load(
"@io_bazel_rules_jsonnet//jsonnet:jsonnet.bzl",
"@rules_jsonnet//jsonnet:jsonnet.bzl",
"jsonnet_library",
"jsonnet_to_json_test",
)
Expand Down
2 changes: 1 addition & 1 deletion jsonnet/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jsonnet_toolchain(

jsonnet_toolchain(
name = "go_jsonnet",
compiler = "@google_jsonnet_go//cmd/jsonnet",
compiler = "@jsonnet_go//cmd/jsonnet",
create_directory_flags = ["-c"],
manifest_file_support = True,
)
Expand Down
2 changes: 1 addition & 1 deletion jsonnet/extensions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def _jsonnet_toolchain_repo_impl(ctx):
content = """
alias(
name = "toolchain",
actual = "@io_bazel_rules_jsonnet//jsonnet:%s_jsonnet_toolchain",
actual = "@rules_jsonnet//jsonnet:%s_jsonnet_toolchain",
)
""" % ctx.attr.compiler,
executable = False,
Expand Down
8 changes: 4 additions & 4 deletions jsonnet/jsonnet.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ Example:
`configs/BUILD`:
```python
load("@io_bazel_rules_jsonnet//jsonnet:jsonnet.bzl", "jsonnet_library")
load("@rules_jsonnet//jsonnet:jsonnet.bzl", "jsonnet_library")
jsonnet_library(
name = "configs",
Expand Down Expand Up @@ -662,7 +662,7 @@ Example:
`workflows/BUILD`:
```python
load("@io_bazel_rules_jsonnet//jsonnet:jsonnet.bzl", "jsonnet_library")
load("@rules_jsonnet//jsonnet:jsonnet.bzl", "jsonnet_library")
jsonnet_library(
name = "workflow",
Expand Down Expand Up @@ -802,7 +802,7 @@ Example:
```python
load(
"@io_bazel_rules_jsonnet//jsonnet:jsonnet.bzl",
"@rules_jsonnet//jsonnet:jsonnet.bzl",
"jsonnet_library",
"jsonnet_to_json_test",
)
Expand Down Expand Up @@ -850,7 +850,7 @@ Example:
```python
load(
"@io_bazel_rules_jsonnet//jsonnet:jsonnet.bzl",
"@rules_jsonnet//jsonnet:jsonnet.bzl",
"jsonnet_library",
"jsonnet_to_json_test",
)
Expand Down

0 comments on commit 29fe09e

Please sign in to comment.