diff --git a/configure/attributes.mdx b/configure/attributes.mdx
index 3b04298f..4f03c453 100644
--- a/configure/attributes.mdx
+++ b/configure/attributes.mdx
@@ -44,7 +44,7 @@ This declares a `cc_binary` that "chooses" its deps based on the flags at the
command line. Specifically, `deps` becomes:
-
+
Command
deps =
diff --git a/contribute/search.mdx b/contribute/search.mdx
index 0875dde0..7bbea560 100644
--- a/contribute/search.mdx
+++ b/contribute/search.mdx
@@ -210,64 +210,64 @@ You can refine your search using the following filters.
-
Filter
-
Other options
-
Description
-
Example
+
Filter
+
Other options
+
Description
+
Example
-
lang:
-
language:
-
Perform an exact match by file language.
-
lang:java test
+
lang:
+
language:
+
Perform an exact match by file language.
+
lang:java test
-
file:
-
+
file:
+
filepath:
path:
f:
-
-
+
+
-
case:yes
-
-
Make the search case sensitive. By default, searches are not case-sensitive.
-
case:yes Hello World
+
case:yes
+
+
Make the search case sensitive. By default, searches are not case-sensitive.
+
case:yes Hello World
-
class:
-
-
Search for a class name.
-
class:MainClass
+
class:
+
+
Search for a class name.
+
class:MainClass
-
function:
-
func:
-
Search for a function name.
-
function:print
+
function:
+
func:
+
Search for a function name.
+
function:print
-
-
-
-
Negates the term from the search.
-
hello -world
+
-
+
+
Negates the term from the search.
+
hello -world
-
\
-
-
Escapes special characters, such as ., \, or (.
-
run\(\)
+
\
+
+
Escapes special characters, such as ., \, or (.
+
run\(\)
-
"[term]"
-
-
Perform a literal search.
-
"class:main"
+
"[term]"
+
+
Perform a literal search.
+
"class:main"
diff --git a/docs/configurable-attributes.mdx b/docs/configurable-attributes.mdx
index f906c15f..8048f3a6 100644
--- a/docs/configurable-attributes.mdx
+++ b/docs/configurable-attributes.mdx
@@ -44,7 +44,7 @@ This declares a `cc_binary` that "chooses" its deps based on the flags at the
command line. Specifically, `deps` becomes:
-
+
Command
deps =
diff --git a/external/migration_tool.mdx b/external/migration_tool.mdx
index d6a36590..cf59c153 100644
--- a/external/migration_tool.mdx
+++ b/external/migration_tool.mdx
@@ -70,7 +70,7 @@ Before you begin:
Once the prerequisites are met, run the following commands to use the migration
tool:
-
+
# Clone the Bazel Central Registry repository
git clone https://github.com/bazelbuild/bazel-central-registry.git
cd bazel-central-registry
@@ -127,7 +127,7 @@ To see the migration script in action, consider the following scenario when
Python, Maven and Go dependencies are declared in `WORKSPACE` file.
-
+
Click here to see `WORKSPACE` file
@@ -267,7 +267,7 @@ Moreover, to demonstrate usage of module extension, custom macro is invoked from
`WORKSPACE` and it is defined in `my_custom_macro.bzl`.
-
+
Click here to see `my_custom_macro.bzl` file
@@ -304,27 +304,27 @@ The first step is to follow [How to Use the Migration Tool](#migration-tool-how-
Then, running `migrate2bzlmod -t=//...` outputs:
-
+
bazel 7.6.1
Generating ./resolved_deps.py file - It might take a while...
- RESOLVED:rules_java has been introduced as a Bazel module.
- RESOLVED:bazel_gazelle has been introduced as a Bazel module.
- RESOLVED:io_bazel_rules_go has been introduced as a Bazel module.
- RESOLVED:rules_python has been introduced as a Bazel module.
- IMPORTANT: 3.11 is used as a default python version. If you need a different version, please change it manually and then rerun the migration tool.
- RESOLVED:my_python_deps has been introduced as python extension.
- RESOLVED:org_golang_x_net has been introduced as go extension.
- RESOLVED:rules_jvm_external has been introduced as a Bazel module.
- RESOLVED:org.antlr has been introduced as maven extension.
- RESOLVED:rules_shell has been introduced as a Bazel module.
+ RESOLVED:rules_java has been introduced as a Bazel module.
+ RESOLVED:bazel_gazelle has been introduced as a Bazel module.
+ RESOLVED:io_bazel_rules_go has been introduced as a Bazel module.
+ RESOLVED:rules_python has been introduced as a Bazel module.
+ IMPORTANT: 3.11 is used as a default python version. If you need a different version, please change it manually and then rerun the migration tool.
+ RESOLVED:my_python_deps has been introduced as python extension.
+ RESOLVED:org_golang_x_net has been introduced as go extension.
+ RESOLVED:rules_jvm_external has been introduced as a Bazel module.
+ RESOLVED:org.antlr has been introduced as maven extension.
+ RESOLVED:rules_shell has been introduced as a Bazel module.
Congratulations! All external repositories needed for building //... are available with Bzlmod!
- IMPORTANT: Fix potential build time issues by running the following command:
- bazel build --enable_bzlmod --noenable_workspace //...
+ IMPORTANT: Fix potential build time issues by running the following command:
+ bazel build --enable_bzlmod --noenable_workspace //...
- IMPORTANT:For details about the migration process, check `migration_info.md` file.
+ IMPORTANT:For details about the migration process, check `migration_info.md` file.
which gives the following important information:
@@ -346,10 +346,10 @@ which gives the following important information:
This section illustrates the migration of code from the `WORKSPACE` file to
`MODULE.bazel`.
-
-
+
## Tips with debugging {#migration-tool-tips}
@@ -641,7 +641,7 @@ from scratch if it's the first run or if the [`--i` flag](#migration-script-flag
declared in the `WORKSPACE` file, which is particularly useful for the
debugging. You can see it as:
-
+
> Click here to see where and how the repo was declared in the WORKSPACE
file
@@ -650,7 +650,7 @@ from scratch if it's the first run or if the [`--i` flag](#migration-script-flag
earlier [Migration Example](#migration-tool-example), that would look as:
1. Bazel module Dependency - `Migration of rules_python`
-
+
Found perfect name match in BCR: rules_python
Found partially name matches in BCR: rules_python_gazelle_plugin
@@ -663,7 +663,7 @@ from scratch if it's the first run or if the [`--i` flag](#migration-script-flag
added.
2. Python extension - `Migration of my_python_deps`
-
+
pip.parse(
hub_name = "my_python_deps",
requirements_lock = "//:requirements_lock.txt",
@@ -674,7 +674,7 @@ from scratch if it's the first run or if the [`--i` flag](#migration-script-flag
3. Maven extension - `Migration of org.antlr (px_deps):`
-
+
maven.artifact(
name = "px_deps",
group = "org.antlr",
@@ -685,7 +685,7 @@ from scratch if it's the first run or if the [`--i` flag](#migration-script-flag
4. Go extension - `Migration of org_golang_x_net`
-
+
+
+ Graph After Resolution
{/* digraph mygraph {
node [ shape=box ]
diff --git a/install/compile-source.mdx b/install/compile-source.mdx
index 480c6522..0c341b20 100644
--- a/install/compile-source.mdx
+++ b/install/compile-source.mdx
@@ -203,7 +203,7 @@ For instructions for Windows, see [Bootstrap Bazel on Windows](#bootstrap-window
* **C++ build toolchain**
-* **JDK.** Version 25 is required.
+* **JDK.** Version 21 is required.
* **Python**. Version 3 is required.
@@ -211,7 +211,7 @@ For example on Ubuntu Linux you can install these requirements using the
following command:
```sh
-sudo apt-get install build-essential openjdk-25-jdk python3 zip unzip
+sudo apt-get install build-essential openjdk-21-jdk python3 zip unzip
```
#### 2.2. Bootstrap Bazel on Unix {#bootstrap-unix}
@@ -249,7 +249,7 @@ For instructions for Unix-like systems, see
* **The Visual C++ compiler.** Install the Visual C++ compiler either as part
of Visual Studio 2015 or newer, or by installing the latest [Build Tools for Visual Studio 2017](https://aka.ms/BuildTools).
-* **JDK.** Version 25 is required.
+* **JDK.** Version 21 is required.
* **Python**. Versions 2 and 3 are supported, installing one of them is
enough. You need the Windows-native version (downloadable from
@@ -278,14 +278,14 @@ For instructions for Unix-like systems, see
export BAZEL_VS="C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools"
export BAZEL_SH="$(cygpath -m $(realpath $(which bash)))"
export PATH="/c/python27:$PATH"
- export JAVA_HOME="C:/Program Files/Java/jdk-25"
+ export JAVA_HOME="C:/Program Files/Java/jdk-21"
or (using BAZEL\_VC):
export BAZEL_VC="C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC"
export BAZEL_SH="$(cygpath -m $(realpath $(which bash)))"
export PATH="/c/python27:$PATH"
- export JAVA_HOME="C:/Program Files/Java/jdk-25"
+ export JAVA_HOME="C:/Program Files/Java/jdk-21"
3. `cd` to the directory where you unpacked the distribution archive.
diff --git a/release/rolling.mdx b/release/rolling.mdx
index 61a1e0fc..23768d42 100644
--- a/release/rolling.mdx
+++ b/release/rolling.mdx
@@ -11,4 +11,6 @@ these releases.
## Index {#index}
-
+
+
+
diff --git a/upstream b/upstream
index 3e93ad81..70deb6ba 160000
--- a/upstream
+++ b/upstream
@@ -1 +1 @@
-Subproject commit 3e93ad81d20c0b2fb86bc04c8da3cde6f6a7cd80
+Subproject commit 70deb6ba71c031ec9f1d7a3daba560a462c3de66
diff --git a/versions/7.6.1/configure/attributes.mdx b/versions/7.6.1/configure/attributes.mdx
index 6a37aacf..faa32464 100644
--- a/versions/7.6.1/configure/attributes.mdx
+++ b/versions/7.6.1/configure/attributes.mdx
@@ -42,7 +42,7 @@ This declares a `cc_binary` that "chooses" its deps based on the flags at the
command line. Specifically, `deps` becomes:
-
+
Command
deps =
diff --git a/versions/7.6.1/contribute/search.mdx b/versions/7.6.1/contribute/search.mdx
index 33ee794f..89e394c0 100644
--- a/versions/7.6.1/contribute/search.mdx
+++ b/versions/7.6.1/contribute/search.mdx
@@ -210,62 +210,62 @@ You can refine your search using the following filters.
-
Filter
-
Other options
-
Description
-
Example
+
Filter
+
Other options
+
Description
+
Example
-
lang:
-
language:
-
Perform an exact match by file language.
-
lang:java test
+
lang:
+
language:
+
Perform an exact match by file language.
+
lang:java test
-
file:
-
filepath:
+
file:
+
filepath:
path:
f:
-
-
+
+
-
case:yes
-
-
Make the search case sensitive. By default, searches are not case-sensitive.
-
case:yes Hello World
+
case:yes
+
+
Make the search case sensitive. By default, searches are not case-sensitive.
+
case:yes Hello World
-
class:
-
-
Search for a class name.
-
class:MainClass
+
class:
+
+
Search for a class name.
+
class:MainClass
-
function:
-
func:
-
Search for a function name.
-
function:print
+
function:
+
func:
+
Search for a function name.
+
function:print
-
-
-
-
Negates the term from the search.
-
hello -world
+
-
+
+
Negates the term from the search.
+
hello -world
-
\\
-
-
Escapes special characters, such as ., \, or (.
-
run\(\)
+
\\
+
+
Escapes special characters, such as ., \, or (.
+
run\(\)
-
"[term]"
-
-
Perform a literal search.
-
"class:main"
+
"[term]"
+
+
Perform a literal search.
+
"class:main"
diff --git a/versions/7.6.1/docs/configurable-attributes.mdx b/versions/7.6.1/docs/configurable-attributes.mdx
index 4a8a569e..f24dc320 100644
--- a/versions/7.6.1/docs/configurable-attributes.mdx
+++ b/versions/7.6.1/docs/configurable-attributes.mdx
@@ -42,7 +42,7 @@ This declares a `cc_binary` that "chooses" its deps based on the flags at the
command line. Specifically, `deps` becomes:
+
+
+ Graph After Resolution
{/* digraph mygraph {
node [ shape=box ]
diff --git a/versions/7.7.1/configure/attributes.mdx b/versions/7.7.1/configure/attributes.mdx
index 8af6445a..57198598 100644
--- a/versions/7.7.1/configure/attributes.mdx
+++ b/versions/7.7.1/configure/attributes.mdx
@@ -42,7 +42,7 @@ This declares a `cc_binary` that "chooses" its deps based on the flags at the
command line. Specifically, `deps` becomes:
-
+
Command
deps =
diff --git a/versions/7.7.1/contribute/search.mdx b/versions/7.7.1/contribute/search.mdx
index 33ee794f..89e394c0 100644
--- a/versions/7.7.1/contribute/search.mdx
+++ b/versions/7.7.1/contribute/search.mdx
@@ -210,62 +210,62 @@ You can refine your search using the following filters.
-
Filter
-
Other options
-
Description
-
Example
+
Filter
+
Other options
+
Description
+
Example
-
lang:
-
language:
-
Perform an exact match by file language.
-
lang:java test
+
lang:
+
language:
+
Perform an exact match by file language.
+
lang:java test
-
file:
-
filepath:
+
file:
+
filepath:
path:
f:
-
-
+
+
-
case:yes
-
-
Make the search case sensitive. By default, searches are not case-sensitive.
-
case:yes Hello World
+
case:yes
+
+
Make the search case sensitive. By default, searches are not case-sensitive.
+
case:yes Hello World
-
class:
-
-
Search for a class name.
-
class:MainClass
+
class:
+
+
Search for a class name.
+
class:MainClass
-
function:
-
func:
-
Search for a function name.
-
function:print
+
function:
+
func:
+
Search for a function name.
+
function:print
-
-
-
-
Negates the term from the search.
-
hello -world
+
-
+
+
Negates the term from the search.
+
hello -world
-
\\
-
-
Escapes special characters, such as ., \, or (.
-
run\(\)
+
\\
+
+
Escapes special characters, such as ., \, or (.
+
run\(\)
-
"[term]"
-
-
Perform a literal search.
-
"class:main"
+
"[term]"
+
+
Perform a literal search.
+
"class:main"
diff --git a/versions/7.7.1/docs/configurable-attributes.mdx b/versions/7.7.1/docs/configurable-attributes.mdx
index 2cfddcc7..585578aa 100644
--- a/versions/7.7.1/docs/configurable-attributes.mdx
+++ b/versions/7.7.1/docs/configurable-attributes.mdx
@@ -42,7 +42,7 @@ This declares a `cc_binary` that "chooses" its deps based on the flags at the
command line. Specifically, `deps` becomes:
+
+
+ Graph After Resolution
{/* digraph mygraph {
node [ shape=box ]
diff --git a/versions/8.0.1/configure/attributes.mdx b/versions/8.0.1/configure/attributes.mdx
index 2b3fa5b8..0e15e5fa 100644
--- a/versions/8.0.1/configure/attributes.mdx
+++ b/versions/8.0.1/configure/attributes.mdx
@@ -42,7 +42,7 @@ This declares a `cc_binary` that "chooses" its deps based on the flags at the
command line. Specifically, `deps` becomes:
-
+
Command
deps =
diff --git a/versions/8.0.1/contribute/search.mdx b/versions/8.0.1/contribute/search.mdx
index 50dc4164..9a721b88 100644
--- a/versions/8.0.1/contribute/search.mdx
+++ b/versions/8.0.1/contribute/search.mdx
@@ -210,62 +210,62 @@ You can refine your search using the following filters.
-
Filter
-
Other options
-
Description
-
Example
+
Filter
+
Other options
+
Description
+
Example
-
lang:
-
language:
-
Perform an exact match by file language.
-
lang:java test
+
lang:
+
language:
+
Perform an exact match by file language.
+
lang:java test
-
file:
-
filepath:
+
file:
+
filepath:
path:
f:
-
-
+
+
-
case:yes
-
-
Make the search case sensitive. By default, searches are not case-sensitive.
-
case:yes Hello World
+
case:yes
+
+
Make the search case sensitive. By default, searches are not case-sensitive.
+
case:yes Hello World
-
class:
-
-
Search for a class name.
-
class:MainClass
+
class:
+
+
Search for a class name.
+
class:MainClass
-
function:
-
func:
-
Search for a function name.
-
function:print
+
function:
+
func:
+
Search for a function name.
+
function:print
-
-
-
-
Negates the term from the search.
-
hello -world
+
-
+
+
Negates the term from the search.
+
hello -world
-
\
-
-
Escapes special characters, such as ., \, or (.
-
run\(\)
+
\
+
+
Escapes special characters, such as ., \, or (.
+
run\(\)
-
"[term]"
-
-
Perform a literal search.
-
"class:main"
+
"[term]"
+
+
Perform a literal search.
+
"class:main"
diff --git a/versions/8.0.1/docs/configurable-attributes.mdx b/versions/8.0.1/docs/configurable-attributes.mdx
index 7780d6d9..a13cd763 100644
--- a/versions/8.0.1/docs/configurable-attributes.mdx
+++ b/versions/8.0.1/docs/configurable-attributes.mdx
@@ -42,7 +42,7 @@ This declares a `cc_binary` that "chooses" its deps based on the flags at the
command line. Specifically, `deps` becomes:
+
+
+ Graph After Resolution
{/* digraph mygraph {
node [ shape=box ]
diff --git a/versions/8.0.1/release/rolling.mdx b/versions/8.0.1/release/rolling.mdx
index 42ae1e01..fc3613f9 100644
--- a/versions/8.0.1/release/rolling.mdx
+++ b/versions/8.0.1/release/rolling.mdx
@@ -9,4 +9,4 @@ these releases.
## Index {#index}
-
+
diff --git a/versions/8.1.1/configure/attributes.mdx b/versions/8.1.1/configure/attributes.mdx
index c28a5358..9d99de1c 100644
--- a/versions/8.1.1/configure/attributes.mdx
+++ b/versions/8.1.1/configure/attributes.mdx
@@ -42,7 +42,7 @@ This declares a `cc_binary` that "chooses" its deps based on the flags at the
command line. Specifically, `deps` becomes:
-
+
Command
deps =
diff --git a/versions/8.1.1/contribute/search.mdx b/versions/8.1.1/contribute/search.mdx
index 33ee794f..89e394c0 100644
--- a/versions/8.1.1/contribute/search.mdx
+++ b/versions/8.1.1/contribute/search.mdx
@@ -210,62 +210,62 @@ You can refine your search using the following filters.
-
Filter
-
Other options
-
Description
-
Example
+
Filter
+
Other options
+
Description
+
Example
-
lang:
-
language:
-
Perform an exact match by file language.
-
lang:java test
+
lang:
+
language:
+
Perform an exact match by file language.
+
lang:java test
-
file:
-
filepath:
+
file:
+
filepath:
path:
f:
-
-
+
+
-
case:yes
-
-
Make the search case sensitive. By default, searches are not case-sensitive.
-
case:yes Hello World
+
case:yes
+
+
Make the search case sensitive. By default, searches are not case-sensitive.
+
case:yes Hello World
-
class:
-
-
Search for a class name.
-
class:MainClass
+
class:
+
+
Search for a class name.
+
class:MainClass
-
function:
-
func:
-
Search for a function name.
-
function:print
+
function:
+
func:
+
Search for a function name.
+
function:print
-
-
-
-
Negates the term from the search.
-
hello -world
+
-
+
+
Negates the term from the search.
+
hello -world
-
\\
-
-
Escapes special characters, such as ., \, or (.
-
run\(\)
+
\\
+
+
Escapes special characters, such as ., \, or (.
+
run\(\)
-
"[term]"
-
-
Perform a literal search.
-
"class:main"
+
"[term]"
+
+
Perform a literal search.
+
"class:main"
diff --git a/versions/8.1.1/docs/configurable-attributes.mdx b/versions/8.1.1/docs/configurable-attributes.mdx
index c272fd02..9e4a30a3 100644
--- a/versions/8.1.1/docs/configurable-attributes.mdx
+++ b/versions/8.1.1/docs/configurable-attributes.mdx
@@ -42,7 +42,7 @@ This declares a `cc_binary` that "chooses" its deps based on the flags at the
command line. Specifically, `deps` becomes:
+
+
+ Graph After Resolution
{/* digraph mygraph {
node [ shape=box ]
diff --git a/versions/8.1.1/release/rolling.mdx b/versions/8.1.1/release/rolling.mdx
index c9ded870..1a7ce5aa 100644
--- a/versions/8.1.1/release/rolling.mdx
+++ b/versions/8.1.1/release/rolling.mdx
@@ -9,4 +9,4 @@ these releases.
## Index {#index}
-
+
diff --git a/versions/8.2.1/configure/attributes.mdx b/versions/8.2.1/configure/attributes.mdx
index bea003d1..62c4cf91 100644
--- a/versions/8.2.1/configure/attributes.mdx
+++ b/versions/8.2.1/configure/attributes.mdx
@@ -42,7 +42,7 @@ This declares a `cc_binary` that "chooses" its deps based on the flags at the
command line. Specifically, `deps` becomes:
-
+
Command
deps =
diff --git a/versions/8.2.1/contribute/search.mdx b/versions/8.2.1/contribute/search.mdx
index 3e0ee2a6..791dd72b 100644
--- a/versions/8.2.1/contribute/search.mdx
+++ b/versions/8.2.1/contribute/search.mdx
@@ -210,62 +210,62 @@ You can refine your search using the following filters.
-
Filter
-
Other options
-
Description
-
Example
+
Filter
+
Other options
+
Description
+
Example
-
lang:
-
language:
-
Perform an exact match by file language.
-
lang:java test
+
lang:
+
language:
+
Perform an exact match by file language.
+
lang:java test
-
file:
-
filepath:
+
file:
+
filepath:
path:
f:
-
-
+
+
-
case:yes
-
-
Make the search case sensitive. By default, searches are not case-sensitive.
-
case:yes Hello World
+
case:yes
+
+
Make the search case sensitive. By default, searches are not case-sensitive.
+
case:yes Hello World
-
class:
-
-
Search for a class name.
-
class:MainClass
+
class:
+
+
Search for a class name.
+
class:MainClass
-
function:
-
func:
-
Search for a function name.
-
function:print
+
function:
+
func:
+
Search for a function name.
+
function:print
-
-
-
-
Negates the term from the search.
-
hello -world
+
-
+
+
Negates the term from the search.
+
hello -world
-
`\`
-
-
Escapes special characters, such as ., \, or (.
-
run\(\)
+
`\`
+
+
Escapes special characters, such as ., \, or (.
+
run\(\)
-
"[term]"
-
-
Perform a literal search.
-
"class:main"
+
"[term]"
+
+
Perform a literal search.
+
"class:main"
diff --git a/versions/8.2.1/docs/configurable-attributes.mdx b/versions/8.2.1/docs/configurable-attributes.mdx
index 80e08920..9db8b8ee 100644
--- a/versions/8.2.1/docs/configurable-attributes.mdx
+++ b/versions/8.2.1/docs/configurable-attributes.mdx
@@ -42,7 +42,7 @@ This declares a `cc_binary` that "chooses" its deps based on the flags at the
command line. Specifically, `deps` becomes:
+
+
+ Graph After Resolution
{/* digraph mygraph {
node [ shape=box ]
diff --git a/versions/8.2.1/release/rolling.mdx b/versions/8.2.1/release/rolling.mdx
index e76532dc..a616bef7 100644
--- a/versions/8.2.1/release/rolling.mdx
+++ b/versions/8.2.1/release/rolling.mdx
@@ -9,4 +9,4 @@ these releases.
## Index {#index}
-
+
diff --git a/versions/8.3.1/configure/attributes.mdx b/versions/8.3.1/configure/attributes.mdx
index 9234424c..cc1a8e45 100644
--- a/versions/8.3.1/configure/attributes.mdx
+++ b/versions/8.3.1/configure/attributes.mdx
@@ -42,7 +42,7 @@ This declares a `cc_binary` that "chooses" its deps based on the flags at the
command line. Specifically, `deps` becomes:
-
+
Command
deps =
diff --git a/versions/8.3.1/contribute/search.mdx b/versions/8.3.1/contribute/search.mdx
index 33ee794f..89e394c0 100644
--- a/versions/8.3.1/contribute/search.mdx
+++ b/versions/8.3.1/contribute/search.mdx
@@ -210,62 +210,62 @@ You can refine your search using the following filters.
-
Filter
-
Other options
-
Description
-
Example
+
Filter
+
Other options
+
Description
+
Example
-
lang:
-
language:
-
Perform an exact match by file language.
-
lang:java test
+
lang:
+
language:
+
Perform an exact match by file language.
+
lang:java test
-
file:
-
filepath:
+
file:
+
filepath:
path:
f:
-
-
+
+
-
case:yes
-
-
Make the search case sensitive. By default, searches are not case-sensitive.
-
case:yes Hello World
+
case:yes
+
+
Make the search case sensitive. By default, searches are not case-sensitive.
+
case:yes Hello World
-
class:
-
-
Search for a class name.
-
class:MainClass
+
class:
+
+
Search for a class name.
+
class:MainClass
-
function:
-
func:
-
Search for a function name.
-
function:print
+
function:
+
func:
+
Search for a function name.
+
function:print
-
-
-
-
Negates the term from the search.
-
hello -world
+
-
+
+
Negates the term from the search.
+
hello -world
-
\\
-
-
Escapes special characters, such as ., \, or (.
-
run\(\)
+
\\
+
+
Escapes special characters, such as ., \, or (.
+
run\(\)
-
"[term]"
-
-
Perform a literal search.
-
"class:main"
+
"[term]"
+
+
Perform a literal search.
+
"class:main"
diff --git a/versions/8.3.1/docs/configurable-attributes.mdx b/versions/8.3.1/docs/configurable-attributes.mdx
index e61a31cf..d7e6c38c 100644
--- a/versions/8.3.1/docs/configurable-attributes.mdx
+++ b/versions/8.3.1/docs/configurable-attributes.mdx
@@ -42,7 +42,7 @@ This declares a `cc_binary` that "chooses" its deps based on the flags at the
command line. Specifically, `deps` becomes:
+
+
+ Graph After Resolution
{/* digraph mygraph {
node [ shape=box ]
diff --git a/versions/8.3.1/release/rolling.mdx b/versions/8.3.1/release/rolling.mdx
index e8a57ef0..a9d4df5c 100644
--- a/versions/8.3.1/release/rolling.mdx
+++ b/versions/8.3.1/release/rolling.mdx
@@ -9,4 +9,4 @@ these releases.
## Index {#index}
-
+
diff --git a/versions/8.4.2/configure/attributes.mdx b/versions/8.4.2/configure/attributes.mdx
index c4cc4a8f..4b70c4b2 100644
--- a/versions/8.4.2/configure/attributes.mdx
+++ b/versions/8.4.2/configure/attributes.mdx
@@ -42,7 +42,7 @@ This declares a `cc_binary` that "chooses" its deps based on the flags at the
command line. Specifically, `deps` becomes:
-
+
Command
deps =
diff --git a/versions/8.4.2/contribute/search.mdx b/versions/8.4.2/contribute/search.mdx
index 33ee794f..89e394c0 100644
--- a/versions/8.4.2/contribute/search.mdx
+++ b/versions/8.4.2/contribute/search.mdx
@@ -210,62 +210,62 @@ You can refine your search using the following filters.
-
Filter
-
Other options
-
Description
-
Example
+
Filter
+
Other options
+
Description
+
Example
-
lang:
-
language:
-
Perform an exact match by file language.
-
lang:java test
+
lang:
+
language:
+
Perform an exact match by file language.
+
lang:java test
-
file:
-
filepath:
+
file:
+
filepath:
path:
f:
-
-
+
+
-
case:yes
-
-
Make the search case sensitive. By default, searches are not case-sensitive.
-
case:yes Hello World
+
case:yes
+
+
Make the search case sensitive. By default, searches are not case-sensitive.
+
case:yes Hello World
-
class:
-
-
Search for a class name.
-
class:MainClass
+
class:
+
+
Search for a class name.
+
class:MainClass
-
function:
-
func:
-
Search for a function name.
-
function:print
+
function:
+
func:
+
Search for a function name.
+
function:print
-
-
-
-
Negates the term from the search.
-
hello -world
+
-
+
+
Negates the term from the search.
+
hello -world
-
\\
-
-
Escapes special characters, such as ., \, or (.
-
run\(\)
+
\\
+
+
Escapes special characters, such as ., \, or (.
+
run\(\)
-
"[term]"
-
-
Perform a literal search.
-
"class:main"
+
"[term]"
+
+
Perform a literal search.
+
"class:main"
diff --git a/versions/8.4.2/docs/configurable-attributes.mdx b/versions/8.4.2/docs/configurable-attributes.mdx
index 728dfc9f..2f54aeb4 100644
--- a/versions/8.4.2/docs/configurable-attributes.mdx
+++ b/versions/8.4.2/docs/configurable-attributes.mdx
@@ -42,7 +42,7 @@ This declares a `cc_binary` that "chooses" its deps based on the flags at the
command line. Specifically, `deps` becomes:
+
+
+ Graph After Resolution
{/* digraph mygraph {
node [ shape=box ]
diff --git a/versions/8.4.2/release/rolling.mdx b/versions/8.4.2/release/rolling.mdx
index 4aba6ac2..059b8276 100644
--- a/versions/8.4.2/release/rolling.mdx
+++ b/versions/8.4.2/release/rolling.mdx
@@ -9,4 +9,4 @@ these releases.
## Index {#index}
-
+
diff --git a/versions/8.5.1/configure/attributes.mdx b/versions/8.5.1/configure/attributes.mdx
index 0ac773dc..25780646 100644
--- a/versions/8.5.1/configure/attributes.mdx
+++ b/versions/8.5.1/configure/attributes.mdx
@@ -42,7 +42,7 @@ This declares a `cc_binary` that "chooses" its deps based on the flags at the
command line. Specifically, `deps` becomes:
-
+
Command
deps =
diff --git a/versions/8.5.1/contribute/search.mdx b/versions/8.5.1/contribute/search.mdx
index 40be6720..b081e3ad 100644
--- a/versions/8.5.1/contribute/search.mdx
+++ b/versions/8.5.1/contribute/search.mdx
@@ -210,62 +210,62 @@ You can refine your search using the following filters.
-
Filter
-
Other options
-
Description
-
Example
+
Filter
+
Other options
+
Description
+
Example
-
lang:
-
language:
-
Perform an exact match by file language.
-
lang:java test
+
lang:
+
language:
+
Perform an exact match by file language.
+
lang:java test
-
file:
-
filepath:
+
file:
+
filepath:
path:
f:
-
-
+
+
-
case:yes
-
-
Make the search case sensitive. By default, searches are not case-sensitive.
-
case:yes Hello World
+
case:yes
+
+
Make the search case sensitive. By default, searches are not case-sensitive.
+
case:yes Hello World
-
class:
-
-
Search for a class name.
-
class:MainClass
+
class:
+
+
Search for a class name.
+
class:MainClass
-
function:
-
func:
-
Search for a function name.
-
function:print
+
function:
+
func:
+
Search for a function name.
+
function:print
-
-
-
-
Negates the term from the search.
-
hello -world
+
-
+
+
Negates the term from the search.
+
hello -world
-
\\
-
-
Escapes special characters, such as ., \, or (.
-
run\(\)
+
\\
+
+
Escapes special characters, such as ., \, or (.
+
run\(\)
-
"[term]"
-
-
Perform a literal search.
-
"class:main"
+
"[term]"
+
+
Perform a literal search.
+
"class:main"
diff --git a/versions/8.5.1/docs/configurable-attributes.mdx b/versions/8.5.1/docs/configurable-attributes.mdx
index 37689d4a..84eff413 100644
--- a/versions/8.5.1/docs/configurable-attributes.mdx
+++ b/versions/8.5.1/docs/configurable-attributes.mdx
@@ -42,7 +42,7 @@ This declares a `cc_binary` that "chooses" its deps based on the flags at the
command line. Specifically, `deps` becomes:
+
+
+ Graph After Resolution
{/* digraph mygraph {
node [ shape=box ]
diff --git a/versions/8.5.1/release/rolling.mdx b/versions/8.5.1/release/rolling.mdx
index 43bdfb06..9c0ad335 100644
--- a/versions/8.5.1/release/rolling.mdx
+++ b/versions/8.5.1/release/rolling.mdx
@@ -9,4 +9,4 @@ these releases.
## Index {#index}
-
+
diff --git a/versions/8.6.0/configure/attributes.mdx b/versions/8.6.0/configure/attributes.mdx
index dffcfbc3..b9fde83c 100644
--- a/versions/8.6.0/configure/attributes.mdx
+++ b/versions/8.6.0/configure/attributes.mdx
@@ -42,7 +42,7 @@ This declares a `cc_binary` that "chooses" its deps based on the flags at the
command line. Specifically, `deps` becomes:
-
+
Command
deps =
diff --git a/versions/8.6.0/contribute/search.mdx b/versions/8.6.0/contribute/search.mdx
index 00ac2a00..21b9cc22 100644
--- a/versions/8.6.0/contribute/search.mdx
+++ b/versions/8.6.0/contribute/search.mdx
@@ -210,62 +210,62 @@ You can refine your search using the following filters.
-
Filter
-
Other options
-
Description
-
Example
+
Filter
+
Other options
+
Description
+
Example
-
lang:
-
language:
-
Perform an exact match by file language.
-
lang:java test
+
lang:
+
language:
+
Perform an exact match by file language.
+
lang:java test
-
file:
-
filepath:
+
file:
+
filepath:
path:
f:
-
-
+
+
-
case:yes
-
-
Make the search case sensitive. By default, searches are not case-sensitive.
-
case:yes Hello World
+
case:yes
+
+
Make the search case sensitive. By default, searches are not case-sensitive.
+
case:yes Hello World
-
class:
-
-
Search for a class name.
-
class:MainClass
+
class:
+
+
Search for a class name.
+
class:MainClass
-
function:
-
func:
-
Search for a function name.
-
function:print
+
function:
+
func:
+
Search for a function name.
+
function:print
-
-
-
-
Negates the term from the search.
-
hello -world
+
-
+
+
Negates the term from the search.
+
hello -world
-
`\`
-
-
Escapes special characters, such as ., \, or (.
-
run\(\)
+
`\`
+
+
Escapes special characters, such as ., \, or (.
+
run\(\)
-
"[term]"
-
-
Perform a literal search.
-
"class:main"
+
"[term]"
+
+
Perform a literal search.
+
"class:main"
diff --git a/versions/8.6.0/docs/configurable-attributes.mdx b/versions/8.6.0/docs/configurable-attributes.mdx
index fd3834d7..2049810e 100644
--- a/versions/8.6.0/docs/configurable-attributes.mdx
+++ b/versions/8.6.0/docs/configurable-attributes.mdx
@@ -42,7 +42,7 @@ This declares a `cc_binary` that "chooses" its deps based on the flags at the
command line. Specifically, `deps` becomes:
+
+
+ Graph After Resolution
{/* digraph mygraph {
node [ shape=box ]
diff --git a/versions/8.6.0/release/rolling.mdx b/versions/8.6.0/release/rolling.mdx
index 4ab04980..718bbdf4 100644
--- a/versions/8.6.0/release/rolling.mdx
+++ b/versions/8.6.0/release/rolling.mdx
@@ -9,4 +9,4 @@ these releases.
## Index
-
+
diff --git a/versions/8.7.0/configure/attributes.mdx b/versions/8.7.0/configure/attributes.mdx
index 789c1d9e..3df895c4 100644
--- a/versions/8.7.0/configure/attributes.mdx
+++ b/versions/8.7.0/configure/attributes.mdx
@@ -43,7 +43,7 @@ This declares a `cc_binary` that "chooses" its deps based on the flags at the
command line. Specifically, `deps` becomes:
-
+
Command
deps =
diff --git a/versions/8.7.0/contribute/search.mdx b/versions/8.7.0/contribute/search.mdx
index 60bc67e8..e72d9cf2 100644
--- a/versions/8.7.0/contribute/search.mdx
+++ b/versions/8.7.0/contribute/search.mdx
@@ -210,62 +210,62 @@ You can refine your search using the following filters.
-
Filter
-
Other options
-
Description
-
Example
+
Filter
+
Other options
+
Description
+
Example
-
lang:
-
language:
-
Perform an exact match by file language.
-
lang:java test
+
lang:
+
language:
+
Perform an exact match by file language.
+
lang:java test
-
file:
-
filepath:
+
file:
+
filepath:
path:
f:
-
-
+
+
-
case:yes
-
-
Make the search case sensitive. By default, searches are not case-sensitive.
-
case:yes Hello World
+
case:yes
+
+
Make the search case sensitive. By default, searches are not case-sensitive.
+
case:yes Hello World
-
class:
-
-
Search for a class name.
-
class:MainClass
+
class:
+
+
Search for a class name.
+
class:MainClass
-
function:
-
func:
-
Search for a function name.
-
function:print
+
function:
+
func:
+
Search for a function name.
+
function:print
-
-
-
-
Negates the term from the search.
-
hello -world
+
-
+
+
Negates the term from the search.
+
hello -world
-
\\
-
-
Escapes special characters, such as ., \, or (.
-
run\(\)
+
\\
+
+
Escapes special characters, such as ., \, or (.
+
run\(\)
-
"[term]"
-
-
Perform a literal search.
-
"class:main"
+
"[term]"
+
+
Perform a literal search.
+
"class:main"
diff --git a/versions/8.7.0/docs/configurable-attributes.mdx b/versions/8.7.0/docs/configurable-attributes.mdx
index 0363a963..4cfd1a35 100644
--- a/versions/8.7.0/docs/configurable-attributes.mdx
+++ b/versions/8.7.0/docs/configurable-attributes.mdx
@@ -43,7 +43,7 @@ This declares a `cc_binary` that "chooses" its deps based on the flags at the
command line. Specifically, `deps` becomes:
diff --git a/versions/8.7.0/release/rolling.mdx b/versions/8.7.0/release/rolling.mdx
index 6e53cc6f..48b26e37 100644
--- a/versions/8.7.0/release/rolling.mdx
+++ b/versions/8.7.0/release/rolling.mdx
@@ -9,4 +9,4 @@ these releases.
## Index {#index}
-
+
diff --git a/versions/9.0.0/configure/attributes.mdx b/versions/9.0.0/configure/attributes.mdx
index 2ac9d741..8bcd5bc2 100644
--- a/versions/9.0.0/configure/attributes.mdx
+++ b/versions/9.0.0/configure/attributes.mdx
@@ -42,7 +42,7 @@ This declares a `cc_binary` that "chooses" its deps based on the flags at the
command line. Specifically, `deps` becomes:
-
+
Command
deps =
diff --git a/versions/9.0.0/contribute/search.mdx b/versions/9.0.0/contribute/search.mdx
index 50dc4164..9a721b88 100644
--- a/versions/9.0.0/contribute/search.mdx
+++ b/versions/9.0.0/contribute/search.mdx
@@ -210,62 +210,62 @@ You can refine your search using the following filters.
-
Filter
-
Other options
-
Description
-
Example
+
Filter
+
Other options
+
Description
+
Example
-
lang:
-
language:
-
Perform an exact match by file language.
-
lang:java test
+
lang:
+
language:
+
Perform an exact match by file language.
+
lang:java test
-
file:
-
filepath:
+
file:
+
filepath:
path:
f:
-
-
+
+
-
case:yes
-
-
Make the search case sensitive. By default, searches are not case-sensitive.
-
case:yes Hello World
+
case:yes
+
+
Make the search case sensitive. By default, searches are not case-sensitive.
+
case:yes Hello World
-
class:
-
-
Search for a class name.
-
class:MainClass
+
class:
+
+
Search for a class name.
+
class:MainClass
-
function:
-
func:
-
Search for a function name.
-
function:print
+
function:
+
func:
+
Search for a function name.
+
function:print
-
-
-
-
Negates the term from the search.
-
hello -world
+
-
+
+
Negates the term from the search.
+
hello -world
-
\
-
-
Escapes special characters, such as ., \, or (.
-
run\(\)
+
\
+
+
Escapes special characters, such as ., \, or (.
+
run\(\)
-
"[term]"
-
-
Perform a literal search.
-
"class:main"
+
"[term]"
+
+
Perform a literal search.
+
"class:main"
diff --git a/versions/9.0.0/docs/configurable-attributes.mdx b/versions/9.0.0/docs/configurable-attributes.mdx
index 9f7f0a6c..ba33ddb0 100644
--- a/versions/9.0.0/docs/configurable-attributes.mdx
+++ b/versions/9.0.0/docs/configurable-attributes.mdx
@@ -42,7 +42,7 @@ This declares a `cc_binary` that "chooses" its deps based on the flags at the
command line. Specifically, `deps` becomes:
-
+
Command
deps =
diff --git a/versions/9.0.0/external/migration_tool.mdx b/versions/9.0.0/external/migration_tool.mdx
index 195f2b57..3cdaaf34 100644
--- a/versions/9.0.0/external/migration_tool.mdx
+++ b/versions/9.0.0/external/migration_tool.mdx
@@ -68,7 +68,7 @@ Before you begin:
Once the prerequisites are met, run the following commands to use the migration
tool:
-
+
# Clone the Bazel Central Registry repository
git clone https://github.com/bazelbuild/bazel-central-registry.git
cd bazel-central-registry
@@ -125,7 +125,7 @@ To see the migration script in action, consider the following scenario when
Python, Maven and Go dependencies are declared in `WORKSPACE` file.
-
+
Click here to see `WORKSPACE` file
@@ -265,7 +265,7 @@ Moreover, to demonstrate usage of module extension, custom macro is invoked from
`WORKSPACE` and it is defined in `my_custom_macro.bzl`.
-
+
Click here to see `my_custom_macro.bzl` file
@@ -302,27 +302,27 @@ The first step is to follow [How to Use the Migration Tool](#migration-tool-how-
Then, running `migrate2bzlmod -t=//...` outputs:
-
+
bazel 7.6.1
Generating ./resolved_deps.py file - It might take a while...
- RESOLVED:rules_java has been introduced as a Bazel module.
- RESOLVED:bazel_gazelle has been introduced as a Bazel module.
- RESOLVED:io_bazel_rules_go has been introduced as a Bazel module.
- RESOLVED:rules_python has been introduced as a Bazel module.
- IMPORTANT: 3.11 is used as a default python version. If you need a different version, please change it manually and then rerun the migration tool.
- RESOLVED:my_python_deps has been introduced as python extension.
- RESOLVED:org_golang_x_net has been introduced as go extension.
- RESOLVED:rules_jvm_external has been introduced as a Bazel module.
- RESOLVED:org.antlr has been introduced as maven extension.
- RESOLVED:rules_shell has been introduced as a Bazel module.
+ RESOLVED:rules_java has been introduced as a Bazel module.
+ RESOLVED:bazel_gazelle has been introduced as a Bazel module.
+ RESOLVED:io_bazel_rules_go has been introduced as a Bazel module.
+ RESOLVED:rules_python has been introduced as a Bazel module.
+ IMPORTANT: 3.11 is used as a default python version. If you need a different version, please change it manually and then rerun the migration tool.
+ RESOLVED:my_python_deps has been introduced as python extension.
+ RESOLVED:org_golang_x_net has been introduced as go extension.
+ RESOLVED:rules_jvm_external has been introduced as a Bazel module.
+ RESOLVED:org.antlr has been introduced as maven extension.
+ RESOLVED:rules_shell has been introduced as a Bazel module.
Congratulations! All external repositories needed for building //... are available with Bzlmod!
- IMPORTANT: Fix potential build time issues by running the following command:
- bazel build --enable_bzlmod --noenable_workspace //...
+ IMPORTANT: Fix potential build time issues by running the following command:
+ bazel build --enable_bzlmod --noenable_workspace //...
- IMPORTANT:For details about the migration process, check `migration_info.md` file.
+ IMPORTANT:For details about the migration process, check `migration_info.md` file.
which gives the following important information:
@@ -344,10 +344,10 @@ which gives the following important information:
This section illustrates the migration of code from the `WORKSPACE` file to
`MODULE.bazel`.
-
-
+
## Tips with debugging {#migration-tool-tips}
@@ -639,7 +639,7 @@ from scratch if it's the first run or if the [`--i` flag](#migration-script-flag
declared in the `WORKSPACE` file, which is particularly useful for the
debugging. You can see it as:
-
+
> Click here to see where and how the repo was declared in the WORKSPACE
file
@@ -648,7 +648,7 @@ from scratch if it's the first run or if the [`--i` flag](#migration-script-flag
earlier [Migration Example](#migration-tool-example), that would look as:
1. Bazel module Dependency - `Migration of rules_python`
-
+
Found perfect name match in BCR: rules_python
Found partially name matches in BCR: rules_python_gazelle_plugin
@@ -661,7 +661,7 @@ from scratch if it's the first run or if the [`--i` flag](#migration-script-flag
added.
2. Python extension - `Migration of my_python_deps`
-
+
pip.parse(
hub_name = "my_python_deps",
requirements_lock = "//:requirements_lock.txt",
@@ -672,7 +672,7 @@ from scratch if it's the first run or if the [`--i` flag](#migration-script-flag
3. Maven extension - `Migration of org.antlr (px_deps):`
-
+
maven.artifact(
name = "px_deps",
group = "org.antlr",
@@ -683,7 +683,7 @@ from scratch if it's the first run or if the [`--i` flag](#migration-script-flag
4. Go extension - `Migration of org_golang_x_net`
-
+
+
+ Graph After Resolution
{/* digraph mygraph {
node [ shape=box ]
diff --git a/versions/9.0.0/release/rolling.mdx b/versions/9.0.0/release/rolling.mdx
index 8aaeb725..f158f563 100644
--- a/versions/9.0.0/release/rolling.mdx
+++ b/versions/9.0.0/release/rolling.mdx
@@ -9,4 +9,4 @@ these releases.
## Index {#index}
-
+
diff --git a/versions/9.1.0/configure/attributes.mdx b/versions/9.1.0/configure/attributes.mdx
index 2be60baf..61e430a1 100644
--- a/versions/9.1.0/configure/attributes.mdx
+++ b/versions/9.1.0/configure/attributes.mdx
@@ -42,7 +42,7 @@ This declares a `cc_binary` that "chooses" its deps based on the flags at the
command line. Specifically, `deps` becomes:
-
+
Command
deps =
diff --git a/versions/9.1.0/contribute/search.mdx b/versions/9.1.0/contribute/search.mdx
index 479bfa87..704c230b 100644
--- a/versions/9.1.0/contribute/search.mdx
+++ b/versions/9.1.0/contribute/search.mdx
@@ -210,62 +210,62 @@ You can refine your search using the following filters.
-
Filter
-
Other options
-
Description
-
Example
+
Filter
+
Other options
+
Description
+
Example
-
lang:
-
language:
-
Perform an exact match by file language.
-
lang:java test
+
lang:
+
language:
+
Perform an exact match by file language.
+
lang:java test
-
file:
-
filepath:
+
file:
+
filepath:
path:
f:
-
-
+
+
-
case:yes
-
-
Make the search case sensitive. By default, searches are not case-sensitive.
-
case:yes Hello World
+
case:yes
+
+
Make the search case sensitive. By default, searches are not case-sensitive.
+
case:yes Hello World
-
class:
-
-
Search for a class name.
-
class:MainClass
+
class:
+
+
Search for a class name.
+
class:MainClass
-
function:
-
func:
-
Search for a function name.
-
function:print
+
function:
+
func:
+
Search for a function name.
+
function:print
-
-
-
-
Negates the term from the search.
-
hello -world
+
-
+
+
Negates the term from the search.
+
hello -world
-
`\`
-
-
Escapes special characters, such as ., \, or (.
-
`run\(\)`
+
`\`
+
+
Escapes special characters, such as ., \, or (.
+
`run\(\)`
-
"[term]"
-
-
Perform a literal search.
-
"class:main"
+
"[term]"
+
+
Perform a literal search.
+
"class:main"
diff --git a/versions/9.1.0/docs/configurable-attributes.mdx b/versions/9.1.0/docs/configurable-attributes.mdx
index 1321a961..c1400eca 100644
--- a/versions/9.1.0/docs/configurable-attributes.mdx
+++ b/versions/9.1.0/docs/configurable-attributes.mdx
@@ -42,7 +42,7 @@ This declares a `cc_binary` that "chooses" its deps based on the flags at the
command line. Specifically, `deps` becomes:
-
+
Command
deps =
diff --git a/versions/9.1.0/external/migration_tool.mdx b/versions/9.1.0/external/migration_tool.mdx
index 0d98e263..ed2250c9 100644
--- a/versions/9.1.0/external/migration_tool.mdx
+++ b/versions/9.1.0/external/migration_tool.mdx
@@ -68,7 +68,7 @@ Before you begin:
Once the prerequisites are met, run the following commands to use the migration
tool:
-
+
# Clone the Bazel Central Registry repository
git clone https://github.com/bazelbuild/bazel-central-registry.git
cd bazel-central-registry
@@ -126,7 +126,7 @@ To see the migration script in action, consider the following scenario when
Python, Maven and Go dependencies are declared in `WORKSPACE` file.
-
+
Click here to see `WORKSPACE` file
@@ -266,7 +266,7 @@ Moreover, to demonstrate usage of module extension, custom macro is invoked from
`WORKSPACE` and it is defined in `my_custom_macro.bzl`.
-
+
Click here to see `my_custom_macro.bzl` file
@@ -304,27 +304,27 @@ Tool](#migration-tool-how-to-use), which mostly is checking the bazel version
Then, running `migrate2bzlmod -t=//...` outputs:
-
+
bazel 7.6.1
Generating ./resolved_deps.py file - It might take a while...
- RESOLVED:rules_java has been introduced as a Bazel module.
- RESOLVED:bazel_gazelle has been introduced as a Bazel module.
- RESOLVED:io_bazel_rules_go has been introduced as a Bazel module.
- RESOLVED:rules_python has been introduced as a Bazel module.
- IMPORTANT: 3.11 is used as a default python version. If you need a different version, please change it manually and then rerun the migration tool.
- RESOLVED:my_python_deps has been introduced as python extension.
- RESOLVED:org_golang_x_net has been introduced as go extension.
- RESOLVED:rules_jvm_external has been introduced as a Bazel module.
- RESOLVED:org.antlr has been introduced as maven extension.
- RESOLVED:rules_shell has been introduced as a Bazel module.
+ RESOLVED:rules_java has been introduced as a Bazel module.
+ RESOLVED:bazel_gazelle has been introduced as a Bazel module.
+ RESOLVED:io_bazel_rules_go has been introduced as a Bazel module.
+ RESOLVED:rules_python has been introduced as a Bazel module.
+ IMPORTANT: 3.11 is used as a default python version. If you need a different version, please change it manually and then rerun the migration tool.
+ RESOLVED:my_python_deps has been introduced as python extension.
+ RESOLVED:org_golang_x_net has been introduced as go extension.
+ RESOLVED:rules_jvm_external has been introduced as a Bazel module.
+ RESOLVED:org.antlr has been introduced as maven extension.
+ RESOLVED:rules_shell has been introduced as a Bazel module.
Congratulations! All external repositories needed for building //... are available with Bzlmod!
- IMPORTANT: Fix potential build time issues by running the following command:
- bazel build --enable_bzlmod --noenable_workspace //...
+ IMPORTANT: Fix potential build time issues by running the following command:
+ bazel build --enable_bzlmod --noenable_workspace //...
- IMPORTANT:For details about the migration process, check `migration_info.md` file.
+ IMPORTANT:For details about the migration process, check `migration_info.md` file.
which gives the following important information:
@@ -346,10 +346,10 @@ which gives the following important information:
This section illustrates the migration of code from the `WORKSPACE` file to
`MODULE.bazel`.
-
-
+
## Tips with debugging {#migration-tool-tips}
@@ -642,7 +642,7 @@ flag](#migration-script-flags) is used. The report contains:
declared in the `WORKSPACE` file, which is particularly useful for the
debugging. You can see it as:
-
+
> Click here to see where and how the repo was declared in the WORKSPACE
file
@@ -651,7 +651,7 @@ flag](#migration-script-flags) is used. The report contains:
earlier [Migration Example](#migration-tool-example), that would look as:
1. Bazel module Dependency - `Migration of rules_python`
-
+
Found perfect name match in BCR: rules_python
Found partially name matches in BCR: rules_python_gazelle_plugin
@@ -664,7 +664,7 @@ flag](#migration-script-flags) is used. The report contains:
added.
2. Python extension - `Migration of my_python_deps`
-
+
pip.parse(
hub_name = "my_python_deps",
requirements_lock = "//:requirements_lock.txt",
@@ -675,7 +675,7 @@ flag](#migration-script-flags) is used. The report contains:
3. Maven extension - `Migration of org.antlr (px_deps):`
-
+
maven.artifact(
name = "px_deps",
group = "org.antlr",
@@ -686,7 +686,7 @@ flag](#migration-script-flags) is used. The report contains:
4. Go extension - `Migration of org_golang_x_net`
-