diff --git a/.bazelci/presubmit.yml b/.bazelci/presubmit.yml index 00a5435f..1f5c9af5 100644 --- a/.bazelci/presubmit.yml +++ b/.bazelci/presubmit.yml @@ -8,19 +8,15 @@ matrix: .common_flags: &common_flags ? "--incompatible_disable_starlark_host_transitions" -.bzlmod_flags: &bzlmod_flags +.noenable_bzlmod_flags: &noenable_bzlmod_flags <<: *common_flags - ? "--enable_bzlmod" + ? "--noenable_bzlmod" .windows_flags: &windows_flags <<: *common_flags # Workaround for https://github.com/bazelbuild/continuous-integration/issues/1012 ? "--noexperimental_repository_cache_hardlinks" -.windows_bzlmod_flags: &windows_bzlmod_flags - <<: *windows_flags - ? "--enable_bzlmod" - .common_task_config: &common_task_config build_flags: *common_flags build_targets: @@ -29,21 +25,31 @@ matrix: test_targets: - "//..." -.bzlmod_task_config: &bzlmod_task_config - <<: *common_task_config - build_flags: *bzlmod_flags - test_flags: *bzlmod_flags +.noenable_bzlmod_task_config: &noenable_bzlmod_task_config + build_flags: *noenable_bzlmod_flags + build_targets: + # Note that //distro/... cannot be loaded in legacy WORKSPACE mode due to repo name change + - "//:*" + - "//src/..." + - "//stardoc/..." + - "//test/..." + test_flags: *noenable_bzlmod_flags + test_targets: + # Some tests are expected to fail in legacy WORKSPACE mode due to repo name change + - "//test/..." + - "-//test:attribute_defaults_test_e2e_test" + - "-//test:function_wrap_multiple_lines_test_e2e_test" + - "-//test:misc_apis_test_e2e_test" + - "-//test:module_extension_test_e2e_test" + - "-//test:proto_format_test_e2e_test" + - "-//test:stardoc_self_gen_test" + - "-//test:table_of_contents_test_e2e_test" .windows_task_config: &windows_task_config <<: *common_task_config build_flags: *windows_flags test_flags: *windows_flags -.windows_bzlmod_task_config: &windows_bzlmod_task_config - <<: *common_task_config - build_flags: *windows_bzlmod_flags - test_flags: *windows_bzlmod_flags - tasks: build_and_test: <<: *common_task_config @@ -55,6 +61,11 @@ tasks: name: Build and test - Windows platform: windows + legacy_workspace: + <<: *noenable_bzlmod_task_config + name: Build and test - legacy WORKSPACE setup + platform: ${{ platform }} + build_and_test_last_green: <<: *common_task_config name: Build and test - Bazel last green @@ -67,15 +78,15 @@ tasks: platform: windows bazel: last_green - bzlmod: - <<: *bzlmod_task_config - name: Bzlmod example + bzlmod_usage: + <<: *common_task_config + name: Stardoc Bzlmod module usage test platform: ${{ platform }} working_directory: test/bzlmod - bzlmod_windows: - <<: *windows_bzlmod_task_config - name: Bzlmod example - Windows + bzlmod_usage_windows: + <<: *windows_task_config + name: Stardoc Bzlmod module usage test - Windows platform: windows working_directory: test/bzlmod diff --git a/.bazelrc b/.bazelrc index 96a50b62..d4d79d29 100644 --- a/.bazelrc +++ b/.bazelrc @@ -1,6 +1,2 @@ build --java_language_version=11 build --tool_java_language_version=11 - -# TODO: migrate all dependencies from WORKSPACE to MODULE.bazel -# https://github.com/bazelbuild/stardoc/issues/189 -common --noenable_bzlmod diff --git a/BUILD b/BUILD index 82683fe5..26d491cb 100644 --- a/BUILD +++ b/BUILD @@ -19,6 +19,7 @@ exports_files( exports_files( [ "WORKSPACE", + "WORKSPACE.bzlmod", "MODULE.bazel", "deps.bzl", "version.bzl", diff --git a/MODULE.bazel b/MODULE.bazel index 6fdafe5d..1217d43d 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -1,6 +1,7 @@ module( name = "stardoc", version = "0.7.0-pre", + bazel_compatibility = [">=7.0.0"], compatibility_level = 1, ) @@ -31,3 +32,6 @@ maven.install( strict_visibility = True, ) use_repo(maven, "stardoc_maven") + +# Dev-only and test-only dependencies +bazel_dep(name = "rules_pkg", version = "0.10.1", dev_dependency = True) diff --git a/WORKSPACE b/WORKSPACE index 2031dabc..bc2138fd 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -57,10 +57,9 @@ bind( # Needed for //distro:__pkg__ http_archive( name = "rules_pkg", - sha256 = "eea0f59c28a9241156a47d7a8e32db9122f3d50b505fae0f33de6ce4d9b61834", + sha256 = "d250924a2ecc5176808fc4c25d5cf5e9e79e6346d79d5ab1c493e289e722d1d0", urls = [ - "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.8.0/rules_pkg-0.8.0.tar.gz", - "https://github.com/bazelbuild/rules_pkg/releases/download/0.8.0/rules_pkg-0.8.0.tar.gz", + "https://github.com/bazelbuild/rules_pkg/releases/download/0.10.1/rules_pkg-0.10.1.tar.gz", ], ) @@ -79,6 +78,11 @@ http_archive( ) # Needed only for testing stardoc across local-repository bounds. +local_repository( + name = "stardoc", # alias the Bzlmod name of the Stardoc repo for local_repository_test + path = ".", +) + local_repository( name = "local_repository_test", path = "test/testdata/local_repository_test", diff --git a/WORKSPACE.bzlmod b/WORKSPACE.bzlmod new file mode 100644 index 00000000..0b3c83d6 --- /dev/null +++ b/WORKSPACE.bzlmod @@ -0,0 +1,7 @@ +### INTERNAL ONLY - lines after this are not included in the release packaging. + +# Needed only for testing stardoc across local-repository bounds. +local_repository( + name = "local_repository_test", + path = "test/testdata/local_repository_test", +) diff --git a/distro/BUILD b/distro/BUILD index 4fc0e1cc..840e979e 100644 --- a/distro/BUILD +++ b/distro/BUILD @@ -1,5 +1,6 @@ -load("@io_bazel_stardoc//:version.bzl", "version") load("@rules_pkg//:pkg.bzl", "pkg_tar") +load("@stardoc//:version.bzl", "version") +load(":distro.bzl", "strip_internal_only") package( default_applicable_licenses = ["//:license"], @@ -11,17 +12,23 @@ alias( actual = "stardoc-%s" % version, ) -genrule( +strip_internal_only( name = "distro_workspace", - srcs = ["//:WORKSPACE"], - outs = ["WORKSPACE"], - cmd = "sed -e '/### INTERNAL ONLY/,/### END INTERNAL ONLY/d' $(location //:WORKSPACE) >$@", + src = "//:WORKSPACE", + out = "WORKSPACE", +) + +strip_internal_only( + name = "distro_workspace_bzlmod", + src = "//:WORKSPACE.bzlmod", + out = "WORKSPACE.bzlmod", ) pkg_tar( name = "distro_srcs", srcs = [ "distro_workspace", + "distro_workspace_bzlmod", "//:distro_srcs", ], mode = "0644", diff --git a/distro/distro.bzl b/distro/distro.bzl new file mode 100644 index 00000000..947ba6ba --- /dev/null +++ b/distro/distro.bzl @@ -0,0 +1,18 @@ +"""Macros related to distro tarball packaging""" + +def strip_internal_only(name, src, out): + """Strip an internal-only block from a file + + Removes everything starting with `### INTERNAL ONLY` and ending with `### END INTERNAL ONLY` (or up to the end of the file). + + Args: + name: Target name + src: Input file + out: Output file + """ + native.genrule( + name = name, + srcs = [src], + outs = [out], + cmd = "sed -e '/### INTERNAL ONLY/,/### END INTERNAL ONLY/d' $(location %s) >$@" % src, + ) diff --git a/docs/advanced_stardoc_usage.md b/docs/advanced_stardoc_usage.md index 24317dbc..6aa534b7 100644 --- a/docs/advanced_stardoc_usage.md +++ b/docs/advanced_stardoc_usage.md @@ -18,7 +18,7 @@ to your Starlark code. Use standard markdown formatting constructs instead of HTML tags. For example: -```python +```starlark def my_function(foo, bar): """Does some cool stuff. @@ -109,7 +109,7 @@ To configure stardoc to output raw proto instead of markdown, use the `format` attribute of the [stardoc rule](stardoc_rule.md#stardoc-format). Specify `"proto"`. An example: -```python +```starlark stardoc( name = "docs_proto_output", out = "doc_output.raw", @@ -121,7 +121,7 @@ stardoc( # Define a proto_library target to incorporate the stardoc_output_proto proto_library( name = "stardoc_output_proto", - srcs = ["@io_bazel_stardoc//stardoc/proto:stardoc_output.proto"], + srcs = ["@stardoc//stardoc/proto:stardoc_output.proto"], ) # You'll need to define your own rendering target. This might be a diff --git a/docs/generating_stardoc.md b/docs/generating_stardoc.md index a379f35a..5c399f84 100644 --- a/docs/generating_stardoc.md +++ b/docs/generating_stardoc.md @@ -9,6 +9,11 @@ The following are some examples of how to use Stardoc. +**Note**: By default - in other words, when using Bzlmod for dependency +management - Stardoc uses `@stardoc` as its repo name. However, if you are +using the legacy `WORSKPACE`-based setup for dependency management, replace +`@stardoc` with `@io_bazel_stardoc` in the examples below. + ## Single File @@ -25,8 +30,8 @@ Suppose you have a project containing Stardoc rules you want to document: To generate documentation for the rules in `checkstyle.bzl`, add the following target to `checkstyle/BUILD`: -```python -load("@io_bazel_stardoc//stardoc:stardoc.bzl", "stardoc") +```starlark +load("@stardoc//stardoc:stardoc.bzl", "stardoc") stardoc( name = "checkstyle-docs", @@ -43,8 +48,8 @@ rule names you specifically want documentation for using the `symbol_names` attr of the `stardoc` rule. If `symbol_names` is specified, only rules matching a name in `symbol_names` will be documented: -```python -load("@io_bazel_stardoc//stardoc:stardoc.bzl", "stardoc") +```starlark +load("@stardoc//stardoc:stardoc.bzl", "stardoc") stardoc( name = "checkstyle-docs", @@ -81,7 +86,7 @@ Suppose your project has the following structure: `checkstyle/checkstyle.bzl`: -```python +```starlark load("//lua:lua.bzl", "lua_utility") lua_utility() @@ -112,8 +117,8 @@ as a dependency of the `stardoc` target: `checkstyle/BUILD`: -```python -load("@io_bazel_stardoc//stardoc:stardoc.bzl", "stardoc") +```starlark +load("@stardoc//stardoc:stardoc.bzl", "stardoc") stardoc( name = "checkstyle-docs", @@ -137,7 +142,7 @@ which loads these files and binds the rules to be documented as globals: `doc_hub.bzl`: -```python +```starlark load("//foo:foo.bzl", _foo_rule = "foo_rule") load("//bar:bar.bzl", _bar_rule = "bar_rule") load("//baz:baz.bzl", _baz_rule = "baz_rule") @@ -154,7 +159,7 @@ A single `stardoc` target can then be used to generate their documentation: `BUILD`: ```python -load("@io_bazel_stardoc//stardoc:stardoc.bzl", "stardoc") +load("@stardoc//stardoc:stardoc.bzl", "stardoc") stardoc( name = "my-docs", diff --git a/docs/getting_started_stardoc.md b/docs/getting_started_stardoc.md index 76442101..f9a663e3 100644 --- a/docs/getting_started_stardoc.md +++ b/docs/getting_started_stardoc.md @@ -12,17 +12,34 @@ extensions](https://bazel.build/extending/concepts) ## Setup +Add a `bazel_dep` invocation for Stardoc to your `MODULE.bazel` file, as shown +in the `MODULE.bazel` setup section for +[the current Stardoc release](https://github.com/bazelbuild/stardoc/releases). + +Then add + +```starlark +load("@stardoc//stardoc:stardoc.bzl", "stardoc") +``` + +to your `BUILD` or .bzl file to start using the `stardoc` rule. + +## Legacy WORKSPACE setup + Edit your `WORKSPACE` file as shown in the `WORKSPACE` setup section for [the current Stardoc release](https://github.com/bazelbuild/stardoc/releases). Then add -```python +```starlark load("@io_bazel_stardoc//stardoc:stardoc.bzl", "stardoc") ``` to your `BUILD` or .bzl file to start using the `stardoc` rule. +Note that if you are using `WORKSPACE` for dependency management, Stardoc's +repo name is `@io_bazel_stardoc`, not `@stardoc`. + ## Next Steps Now you are ready to document your Starlark rules. diff --git a/docs/maintainers_guide.md b/docs/maintainers_guide.md index d73fbb3d..e113cca4 100644 --- a/docs/maintainers_guide.md +++ b/docs/maintainers_guide.md @@ -63,7 +63,19 @@ Name 1, Name 2, Name 3 (alphabetically) -------------------------------------------------------------------------------- -**WORKSPACE setup** +**MODULE.bazel setup** + +```starlark +bazel_dep(name = "stardoc", version = "$VERSION") +``` + +By default - in other words, when using Bzlmod for dependency management - +Stardoc uses `@stardoc` as its repo name. The legacy `WORSKSPACE` setup (see +below) used `@io_bazel_stardoc` instead. For compatibility with the legacy +`WORKSPACE` setup, you may add `repo_name = "io_bazel_stardoc"` to the +`bazel_dep` call. + +**Legacy WORKSPACE setup** To use Stardoc, add the following to your `WORKSPACE` file: @@ -111,17 +123,6 @@ maven_install.json file" or other repository fetch errors (example: #186), try moving the Stardoc dependency block above or below other dependencies in your `WORKSPACE` file. - - **Using the rules** See [the source](https://github.com/bazelbuild/stardoc/tree/$VERSION). diff --git a/docs/skydoc_deprecation.md b/docs/skydoc_deprecation.md index 3ad957b1..72d57453 100644 --- a/docs/skydoc_deprecation.md +++ b/docs/skydoc_deprecation.md @@ -84,7 +84,7 @@ depends on `third/package/baz.bzl`. **BUILD**: ```python -load("@io_bazel_stardoc//stardoc:stardoc.bzl", "stardoc") +load("@stardoc//stardoc:stardoc.bzl", "stardoc") stardoc( name = "foo_docs", diff --git a/docs/stardoc_rule.md b/docs/stardoc_rule.md index be570a8e..52658ea9 100644 --- a/docs/stardoc_rule.md +++ b/docs/stardoc_rule.md @@ -26,15 +26,15 @@ Generates documentation for exported starlark rule definitions in a target starl | deps | A list of bzl_library dependencies which the input depends on. | `[]` | | format | The format of the output file. Valid values: 'markdown' or 'proto'. | `"markdown"` | | symbol_names | A list of symbol names to generate documentation for. These should correspond to the names of rule definitions in the input file. If this list is empty, then documentation for all exported rule definitions will be generated. | `[]` | -| renderer | The location of the renderer tool. | `Label("@io_bazel_stardoc//stardoc:renderer")` | -| aspect_template | The input file template for generating documentation of aspects | `Label("@io_bazel_stardoc//stardoc:templates/markdown_tables/aspect.vm")` | -| func_template | The input file template for generating documentation of functions. | `Label("@io_bazel_stardoc//stardoc:templates/markdown_tables/func.vm")` | -| header_template | The input file template for the header of the output documentation. | `Label("@io_bazel_stardoc//stardoc:templates/markdown_tables/header.vm")` | +| renderer | The location of the renderer tool. | `Label("@stardoc//stardoc:renderer")` | +| aspect_template | The input file template for generating documentation of aspects | `Label("@stardoc//stardoc:templates/markdown_tables/aspect.vm")` | +| func_template | The input file template for generating documentation of functions. | `Label("@stardoc//stardoc:templates/markdown_tables/func.vm")` | +| header_template | The input file template for the header of the output documentation. | `Label("@stardoc//stardoc:templates/markdown_tables/header.vm")` | | table_of_contents_template | The input file template for the table of contents of the output documentation. This is unset by default for backwards compatibility. Use `Label("@stardoc//stardoc:templates/markdown_tables/table_of_contents.vm")` for the default template. | `None` | -| provider_template | The input file template for generating documentation of providers. | `Label("@io_bazel_stardoc//stardoc:templates/markdown_tables/provider.vm")` | -| rule_template | The input file template for generating documentation of rules. | `Label("@io_bazel_stardoc//stardoc:templates/markdown_tables/rule.vm")` | -| repository_rule_template | The input file template for generating documentation of repository rules. | `Label("@io_bazel_stardoc//stardoc:templates/markdown_tables/repository_rule.vm")` | -| module_extension_template | The input file template for generating documentation of module extensions. | `Label("@io_bazel_stardoc//stardoc:templates/markdown_tables/module_extension.vm")` | +| provider_template | The input file template for generating documentation of providers. | `Label("@stardoc//stardoc:templates/markdown_tables/provider.vm")` | +| rule_template | The input file template for generating documentation of rules. | `Label("@stardoc//stardoc:templates/markdown_tables/rule.vm")` | +| repository_rule_template | The input file template for generating documentation of repository rules. | `Label("@stardoc//stardoc:templates/markdown_tables/repository_rule.vm")` | +| module_extension_template | The input file template for generating documentation of module extensions. | `Label("@stardoc//stardoc:templates/markdown_tables/module_extension.vm")` | | footer_template | The input file template for generating the footer of the output documentation. Optional. | `None` | | render_main_repo_name | Render labels in the main repository with a repo component (either the module name or workspace name). | `True` | | stamp | Whether to provide stamping information to templates. | `False` | diff --git a/test/testdata/attribute_defaults_test/golden.md b/test/testdata/attribute_defaults_test/golden.md index 64adeabc..98ce76b5 100644 --- a/test/testdata/attribute_defaults_test/golden.md +++ b/test/testdata/attribute_defaults_test/golden.md @@ -21,9 +21,9 @@ This is my rule. It does stuff. | a | Some bool | Boolean | optional | `False` | | b | Some int | Integer | optional | `2` | | c | Some int_list | List of integers | optional | `[0, 1]` | -| d | Some label | Label | optional | `"@io_bazel_stardoc//foo:bar"` | -| e | Some label_keyed_string_dict | Dictionary: Label -> String | optional | `{"@io_bazel_stardoc//foo:bar": "hello", "@io_bazel_stardoc//bar:baz": "goodbye"}` | -| f | Some label_list | List of labels | optional | `["@io_bazel_stardoc//foo:bar", "@io_bazel_stardoc//bar:baz"]` | +| d | Some label | Label | optional | `"@stardoc//foo:bar"` | +| e | Some label_keyed_string_dict | Dictionary: Label -> String | optional | `{"@stardoc//foo:bar": "hello", "@stardoc//bar:baz": "goodbye"}` | +| f | Some label_list | List of labels | optional | `["@stardoc//foo:bar", "@stardoc//bar:baz"]` | | g | Some string | String | optional | `""` | | h | Some string_dict | Dictionary: String -> String | optional | `{"animal": "bunny", "color": "orange"}` | | i | Some string_list | List of strings | optional | `["cat", "dog"]` | diff --git a/test/testdata/function_wrap_multiple_lines_test/golden.md b/test/testdata/function_wrap_multiple_lines_test/golden.md index 81f7f9e5..e0f2c40c 100644 --- a/test/testdata/function_wrap_multiple_lines_test/golden.md +++ b/test/testdata/function_wrap_multiple_lines_test/golden.md @@ -21,7 +21,7 @@ Runs [ANTLR 3](https://www.antlr3.org//) on a set of grammars. | Name | Description | Type | Mandatory | Default | | :------------- | :------------- | :------------- | :------------- | :------------- | | name | A unique name for this target. | Name | required | | -| deps | The dependencies to use. Defaults to the most recent ANTLR 3 release, but if you need to use a different version, you can specify the dependencies here. | List of labels | optional | `["@antlr3_runtimes//:tool"]` | +| deps | The dependencies to use. Defaults to the most recent ANTLR 3 release, but if you need to use a different version, you can specify the dependencies here. | List of labels | optional | `["@@[unknown repo 'antlr3_runtimes' requested from @@]//:tool"]` | | srcs | The grammar files to process. | List of labels | required | | | Xconversiontimeout | Set NFA conversion timeout for each decision. | Integer | optional | `0` | | Xdbgconversion | Dump lots of info during NFA conversion. | Boolean | optional | `False` | diff --git a/test/testdata/local_repository_test/BUILD b/test/testdata/local_repository_test/BUILD index 0e09021d..fdb37003 100644 --- a/test/testdata/local_repository_test/BUILD +++ b/test/testdata/local_repository_test/BUILD @@ -1,5 +1,5 @@ load("@bazel_skylib//:bzl_library.bzl", "bzl_library") -load("@io_bazel_stardoc//stardoc:stardoc.bzl", "stardoc") +load("@stardoc//stardoc:stardoc.bzl", "stardoc") package( default_visibility = ["//visibility:public"], @@ -23,6 +23,6 @@ bzl_library( name = "lib", srcs = [ "input.bzl", - "@io_bazel_stardoc//test:testdata/fakedeps/dep.bzl", + "@stardoc//test:testdata/fakedeps/dep.bzl", ], ) diff --git a/test/testdata/local_repository_test/input.bzl b/test/testdata/local_repository_test/input.bzl index 7504183b..6c429873 100644 --- a/test/testdata/local_repository_test/input.bzl +++ b/test/testdata/local_repository_test/input.bzl @@ -1,6 +1,6 @@ """A test that verifies documenting functions in an input file under a local_repository.""" -load("@io_bazel_stardoc//test:testdata/fakedeps/dep.bzl", "give_me_five") +load("@stardoc//test:testdata/fakedeps/dep.bzl", "give_me_five") def min(integers): """Returns the minimum of given elements. diff --git a/test/testdata/misc_apis_test/golden.md b/test/testdata/misc_apis_test/golden.md index 3e3ef3c4..956bf704 100644 --- a/test/testdata/misc_apis_test/golden.md +++ b/test/testdata/misc_apis_test/golden.md @@ -22,7 +22,7 @@ This rule exercises some of the build API. | src | The source file. | Label | optional | `None` | | out | The output file. | Label | required | | | extra_arguments | - | List of strings | optional | `[]` | -| tool | The location of the tool to use. | Label | optional | `"@io_bazel_stardoc//foo/bar/baz:target"` | +| tool | The location of the tool to use. | Label | optional | `"@stardoc//foo/bar/baz:target"` | diff --git a/test/testdata/module_extension_test/golden.md b/test/testdata/module_extension_test/golden.md index addfc77b..17ffd256 100644 --- a/test/testdata/module_extension_test/golden.md +++ b/test/testdata/module_extension_test/golden.md @@ -7,7 +7,7 @@ Minimal example of a .bzl file defining a module extension. ## my_ext
-my_ext = use_extension("@io_bazel_stardoc//test:testdata/module_extension_test/input.bzl", "my_ext")
+my_ext = use_extension("@stardoc//test:testdata/module_extension_test/input.bzl", "my_ext")
 my_ext.install(artifacts)
 my_ext.artifact(artifact, group)
 
diff --git a/test/testdata/proto_format_test/golden.binaryproto b/test/testdata/proto_format_test/golden.binaryproto index ff1d54b5..63e45655 100644 --- a/test/testdata/proto_format_test/golden.binaryproto +++ b/test/testdata/proto_format_test/golden.binaryproto @@ -1,21 +1,21 @@ - + my_exampleSmall example of rule.* nameA unique name for this target. 7 uselessThis argument will be ignored.2 -"ignoreme""J +"ignoreme""A -my_example<@io_bazel_stardoc//test:testdata/proto_format_test/input.bzl +my_example3@stardoc//test:testdata/proto_format_test/input.bzl example$Stores information about an example. fooA string representing foo barA string representing bar -bazA string representing baz"G -example<@io_bazel_stardoc//test:testdata/proto_format_test/input.bzl +bazA string representing baz"> +example3@stardoc//test:testdata/proto_format_test/input.bzl check_function% fooA unique name for this rule. Runs some checks on the given function parameter. This rule runs checks on a given function parameter. Use `bazel build` to run the check. -2N -check_function<@io_bazel_stardoc//test:testdata/proto_format_test/input.bzl* Input file for proto format test2<@io_bazel_stardoc//test:testdata/proto_format_test/input.bzl \ No newline at end of file +2E +check_function3@stardoc//test:testdata/proto_format_test/input.bzl* Input file for proto format test23@stardoc//test:testdata/proto_format_test/input.bzl \ No newline at end of file diff --git a/test/testdata/table_of_contents_test/golden.md b/test/testdata/table_of_contents_test/golden.md index 38229b08..52ca9aa4 100644 --- a/test/testdata/table_of_contents_test/golden.md +++ b/test/testdata/table_of_contents_test/golden.md @@ -231,7 +231,7 @@ This repository rule depends on the following environment variables: ## my_ext
-my_ext = use_extension("@io_bazel_stardoc//test:testdata/table_of_contents_test/input.bzl", "my_ext")
+my_ext = use_extension("@stardoc//test:testdata/table_of_contents_test/input.bzl", "my_ext")
 my_ext.install(artifacts)
 my_ext.artifact(artifact, group)