IMPORTANT: The Bazel docs have moved! Please update your bookmark to https://bazel.build/rules/lib/repository_os

You can read about the migration, and let us know what you think.

Extensions > API reference > repository_os

repository_os

Various data about the current platform Bazel is running on.

Members

arch

string repository_os.arch

A string identifying the architecture Bazel is running on (the value of the "os.arch" Java property).

environ

dict repository_os.environ

The list of environment variables.

name

string repository_os.name

A string identifying the operating system Bazel is running on (the value of the "os.name" Java property).