Skip to content

Files

Latest commit

b3cd192 Β· Sep 11, 2024

History

History

bzlmod

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jun 17, 2024
Sep 11, 2024
Oct 2, 2023
Oct 3, 2023
Oct 2, 2023
Jun 17, 2024
Oct 2, 2023
Sep 25, 2023

This folder contains example usages of the new external dependency system for Bazel - Bzlmod. In general, each example repository contains

  • The MODULE.bazel file for defining dependencies with Bzlmod.
  • The WORKSPACE file for defining equivalent dependencies with the old system.
  • An empty WORKSPACE.bzlmod file to prevent fetching any dependencies from the old WORKSPACE system when Bzlmod is enabled. (Bzlmod and WORKSPACE can work at the same time, with dependencies from Bzlmod takes priority.)

With Bazel 6, you'll need to pass --enable_bzlmod as a build flag to turn this feature on. Consider adding this to .bazelrc:

common --enable_bzlmod