Back to Bazel

Repo

docs/versions/8.3.0/rules/lib/globals/repo.mdx

9.1.03.4 KB
Original Source
<html devsite> <head> <meta name="project_path" value="/_project.yaml"> <meta name="book_path" value="/versions/8.3.0/_book.yaml"> </head> <body> <h1 class="page-title" id="modules.repo">REPO.bazel files</h1>

{% dynamic setvar source_file "NONE" %} {% dynamic setvar version "8.3.0" %} {% dynamic setvar original_path "/rules/lib/globals/repo" %} {% include "_buttons.html" %}

<!-- {% raw %} -->

Methods available in REPO.bazel files.

<h2>Members</h2> <ul> <li> <a href="#ignore_directories">ignore_directories</a> </li> <li> <a href="#repo">repo</a> </li> </ul>
  <h2 id="ignore_directories">ignore_directories</h2>
    <p><pre class="rule-signature"><code>None</code> ignore_directories(dirs)</pre></p>

The list of directories to ignore in this repository. <p>This function takes a list of strings and a directory is ignored if any of the given strings matches its repository-relative path according to the semantics of the <code>glob()</code> function. This function can be used to ignore directories that are implementation details of source control systems, output files of other build systems, etc.

      <!-- hide-from-toc is a class used by DevSite for the public Bazel site
  (https://developers.google.com/devsite/reference/styles/headings#hide_headings_from_the_toc) -->
  <h3 class="hide-from-toc">Parameters</h3>
  <table class="table table-bordered table-condensed table-params">
    <colgroup>
      <col class="col-param">
      <col class="param-description">
    </colgroup>
    <thead>
      <tr>
        <th>Parameter</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
              <tr>
        <td id="ignore_directories.dirs">
          <code>dirs</code>
        </td>
        <td>
                      <a class="anchor" href="../core/list.html">sequence</a> of <a class="anchor" href="../core/string.html">string</a>s;
                                 required


        </td>
      </tr>
            </tbody>
  </table>

    <h2 id="repo">repo</h2>
    <p><pre class="rule-signature"><code>None</code> repo(**kwargs)</pre></p>

Declares metadata that applies to every rule in the repository. It must be called at most once per REPO.bazel file. If called, it must be the first call in the REPO.bazel file.

      <!-- hide-from-toc is a class used by DevSite for the public Bazel site
  (https://developers.google.com/devsite/reference/styles/headings#hide_headings_from_the_toc) -->
  <h3 class="hide-from-toc">Parameters</h3>
  <table class="table table-bordered table-condensed table-params">
    <colgroup>
      <col class="col-param">
      <col class="param-description">
    </colgroup>
    <thead>
      <tr>
        <th>Parameter</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
              <tr>
        <td id="repo.kwargs">
          <code>kwargs</code>
        </td>
        <td>
                                 required

                      The <code>repo()</code> function accepts exactly the same arguments as the <a href="/versions/8.3.0/reference/be/functions#package"><code>package()</code></a> function in BUILD files.
        </td>
      </tr>
            </tbody>
  </table>
</body> </html> <!-- {% endraw %} -->