Skip to content

Commit

Permalink
Update bzlmod migration to mention enable_bzlmod
Browse files Browse the repository at this point in the history
When following the migration guide make sure to explicitly tell the user to update their `.bazelrc` with the `--enable_bzlmod` so that Bzlmod will be active.
  • Loading branch information
jlisee authored Sep 19, 2023
1 parent 3028e9a commit c1925e5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions site/en/external/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,19 @@ your workspace root, maybe with comments like:
# See MODULE.bazel for external dependencies setup.
```

### Enable Blzmod in your bazelrc {:#enable-bzldmod}

`.bazelrc` lets you set flags that apply every time your run Bazel. To enable
Bzlmod we use the `--enable_bzlmod` flag, and apply it to the `common` command so
it applies to every command:

* **.bazelrc**

```
# Enable bzlmod for every bazel command
common --enable_bzlmod
```

### Specify repository name for your workspace {:#specify-repo-name}

* **WORKSPACE**
Expand Down

0 comments on commit c1925e5

Please sign in to comment.