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.arch
string repository_os.archA string identifying the architecture Bazel is running on (the value of the "os.arch" Java property).
environ
dict repository_os.environThe list of environment variables.
name
string repository_os.nameA string identifying the operating system Bazel is running on (the value of the "os.name" Java property).