Back to Bazel

Repository Os

docs/versions/6.5.0/rules/lib/repository_os.mdx

9.2.01.3 KB
Original Source
<html devsite> <head> <meta name="project_path" value="/_project.yaml"> <meta name="book_path" value="/versions/6.5.0/_book.yaml"> </head> <body> <h1 class="page-title" id="modules.repository_os">repository_os</h1> <!-- {% raw %} -->

Various data about the current platform Bazel is running on.

<h2>Members</h2> <ul> <li> <a href="#arch">arch</a> </li> <li> <a href="#environ">environ</a> </li> <li> <a href="#name">name</a> </li> </ul>
  <h2 id="arch">arch</h2>
    <p><pre class="rule-signature"><a class="anchor" href="string.html">string</a> repository_os.arch</pre></p>

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


    <h2 id="environ">environ</h2>
    <p><pre class="rule-signature"><a class="anchor" href="dict.html">dict</a> repository_os.environ</pre></p>

The list of environment variables.


    <h2 id="name">name</h2>
    <p><pre class="rule-signature"><a class="anchor" href="string.html">string</a> repository_os.name</pre></p>

A string identifying the operating system Bazel is running on (the value of the "os.name" Java property converted to lower case).
</body> </html> <!-- {% endraw %} -->