Skip to main content

Bazel

Bazel

The Bazel package manager.

Configuration

Example

Use the following syntax to configure this plugin globally as part of config.yml:

ort:
analyzer:
packageManagers:
Bazel:
options:
conanLockfileName: "conan.lock"
useConan2: false
bazelDependenciesOnly: false

Use the following syntax to configure this plugin in a repository's .ort.yml:

analyzer:
package_managers:
Bazel:
options:
conanLockfileName: "conan.lock"
useConan2: false
bazelDependenciesOnly: false

If the plugin is configured in both locations, the configurations are merged, with options from .ort.yml taking precedence over those from config.yml.

Options

conanLockfileName

STRING Default

The default name of the lockfile for the Conan package manager.

useConan2

BOOLEAN Default

Use Conan2 when fetching Conan packages, otherwise use Conan 1.

bazelDependenciesOnly

BOOLEAN Default

Only scan Bazel dependencies and skip reporting Conan packages in the dependency tree.