From 8e4d253fd2b492ad5a3cf8e9126b38202b2418a2 Mon Sep 17 00:00:00 2001 From: Paul Johnston Date: Wed, 19 Nov 2025 17:00:21 -0700 Subject: [PATCH] Rename module from io_bazel_rules_closure to stackb_rules_closure --- MODULE.bazel | 4 +- README.md | 31 ++++++------- closure/compiler/test/goog_es6_interop/BUILD | 2 +- closure/goog/BUILD.bazel | 2 +- closure/protobuf/defs.bzl | 2 +- .../templates/closure_js_template_library.bzl | 46 +++++++++---------- closure/webfiles/web_library_external.bzl | 2 +- third_party/phantomjs/phantomjs.sh | 2 +- 8 files changed, 43 insertions(+), 48 deletions(-) diff --git a/MODULE.bazel b/MODULE.bazel index 927aa5bc32..25881e5c97 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -1,5 +1,5 @@ module( - name = "io_bazel_rules_closure", + name = "stackb_rules_closure", version = "0.0.0", compatibility_level = 1, ) @@ -167,7 +167,7 @@ maven.install( known_contributing_modules = [ "build_stack_rules_proto", "grpc-java", - "io_bazel_rules_closure", + "stackb_rules_closure", "protobuf", "rules_web_testing_java", ], diff --git a/README.md b/README.md index 895f784e3a..5dd82195b7 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # Notice -This is fork of [bazelbuild/io_bazel_rules_closure](https://github.com/bazelbuild/io_bazel_rules_closure) with the following main differences: +This is fork of [bazelbuild/rules_closure](https://github.com/bazelbuild/rules_closure) with the following main differences: -- repo name is `@io_bazel_rules_closure` instead of `@rules_closure`. +- repo name is `@stackb_rules_closure` instead of `@rules_closure`. - the `closure/library` has been restored. - missing shims and third-party closure js code has been vendored in `google3/`. - support for protobuf-javascript has been restored. @@ -11,11 +11,6 @@ This is fork of [bazelbuild/io_bazel_rules_closure](https://github.com/bazelbuil - bzlmod deps updated - stricter .bazelrc flags -> Since this fork is closer to the original rules_closure by @jart and needs to -> be distinguished in the BCR, the repo name has been reverted to -> `@io_bazel_rules_closure`. The version numbers and tagging scheme are -> somewhat arbitrary and will try to follow the numbering in the upstream repo. - # Closure Rules for Bazel (αlpha) [![Bazel CI build status](https://badge.buildkite.com/7569410e2a2661076591897283051b6d137f35102167253fed.svg)](https://buildkite.com/bazel/closure-compiler-rules-closure-postsubmit) JavaScript | Stylesheets | Miscellaneous @@ -82,7 +77,7 @@ First you must [install Bazel]. Then you add the following to your MODULE.bazel file: ```bzl -bazel_dep(name = "io_bazel_rules_closure", version = "0.15.0") +bazel_dep(name = "stackb_rules_closure", version = "0.15.0") ``` The root module has to declare the same override for rules_webtesting, rules_scala, and google_bazel_common temporarily until they are registered @@ -95,9 +90,9 @@ for that matter; they will be fetched automatically by Bazel. Please see the test directories within this project for concrete examples of usage: -- [//closure/testing/test](https://github.com/bazelbuild/io_bazel_rules_closure/tree/master/closure/testing/test) -- [//closure/compiler/test](https://github.com/bazelbuild/io_bazel_rules_closure/tree/master/closure/compiler/test) -- [//closure/stylesheets/test](https://github.com/bazelbuild/io_bazel_rules_closure/tree/master/closure/stylesheets/test) +- [//closure/testing/test](https://github.com/stackb/stackb_rules_closure/tree/master/closure/testing/test) +- [//closure/compiler/test](https://github.com/stackb/stackb_rules_closure/tree/master/closure/compiler/test) +- [//closure/stylesheets/test](https://github.com/stackb/stackb_rules_closure/tree/master/closure/stylesheets/test) # Reference @@ -319,7 +314,7 @@ This rule can be referenced as though it were the following: - **defs:** (List of strings; optional) Specifies additional flags to be passed to the Closure Compiler, e.g. `"--hide_warnings_for=some/path/"`. To see what flags are available, run: - `bazel run @io_bazel_rules_closure//third_party/java/jscomp:main -- --help` + `bazel run @stackb_rules_closure//third_party/java/jscomp:main -- --help` ### Support for AngularJS @@ -441,17 +436,17 @@ This rule can be referenced as though it were the following: `