# repository_os

{% dynamic setvar source_file "src/main/java/com/google/devtools/build/lib/bazel/repository/starlark/StarlarkOS.java" %} {% dynamic setvar version "7.2.0" %} {% dynamic setvar original_path "/rules/lib/builtins/repository_os" %} {% include "_buttons.html" %} Various data about the current platform Bazel is running on.

## Members

- arch
- environ
- name

## arch

    string repository_os.arch

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

## environ

    dict repository_os.environ

The dictionary of environment variables.

NOTE: Retrieving an environment variable from this dictionary does not establish a dependency from a repository rule or module extension to the environment variable. To establish a dependency when looking up an environment variable, use either `repository_ctx.getenv` or `module_ctx.getenv` instead.

## name

    string repository_os.name

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