Skip to content

Commit

Permalink
Document bazelrc "import %workspace%/..."
Browse files Browse the repository at this point in the history
Document that a bazelrc file can import from a path that is relative to the workspace root by writing "import %workspace%/..."

Closes bazelbuild#3405.

PiperOrigin-RevId: 162600010
  • Loading branch information
mmorearty authored and aehlig committed Jul 20, 2017
1 parent 08e34e3 commit 7ddf361
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion site/docs/bazel-user-manual.html
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,8 @@ <h3 id='bazelrc'><code>.bazelrc</code>, the Bazel configuration file,
take precedence over ones specified before the import statement, options
specified after the import statement take precedence over the ones in the
imported file, and options in files imported later take precedence over files
imported earlier.
imported earlier. To specify a path that is relative to the workspace root,
write <code>import %workspace%/path/to/bazelrc</code>.
</p>
<p>
Here's an example <code>~/.bazelrc</code> file:
Expand Down

0 comments on commit 7ddf361

Please sign in to comment.