Skip to content

Commit 65c8f18

Browse files
Fix args ordering in macros
1 parent 2c79484 commit 65c8f18

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

docs/copy_directory_doc.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on Windows (no Bash is required).
1111
## copy_directory
1212

1313
<pre>
14-
copy_directory(<a href="#copy_directory-name">name</a>, <a href="#copy_directory-src">src</a>, <a href="#copy_directory-out">out</a>, <a href="#copy_directory-progress_message">progress_message</a>, <a href="#copy_directory-mnemonic">mnemonic</a>, <a href="#copy_directory-kwargs">kwargs</a>)
14+
copy_directory(<a href="#copy_directory-name">name</a>, <a href="#copy_directory-src">src</a>, <a href="#copy_directory-out">out</a>, <a href="#copy_directory-mnemonic">mnemonic</a>, <a href="#copy_directory-progress_message">progress_message</a>, <a href="#copy_directory-kwargs">kwargs</a>)
1515
</pre>
1616

1717
Copies a directory to another location.
@@ -33,8 +33,8 @@ for more context.
3333
| <a id="copy_directory-name"></a>name | Name of the rule. | none |
3434
| <a id="copy_directory-src"></a>src | The directory to make a copy of. Can be a source directory or TreeArtifact. | none |
3535
| <a id="copy_directory-out"></a>out | Path of the output directory, relative to this package. | none |
36-
| <a id="copy_directory-progress_message"></a>progress_message | A custom action progress message. | <code>"Copying directory %{input}"</code> |
3736
| <a id="copy_directory-mnemonic"></a>mnemonic | A custom action mnemonic. | <code>"CopyDirectory"</code> |
37+
| <a id="copy_directory-progress_message"></a>progress_message | A custom action progress message. | <code>"Copying directory %{input}"</code> |
3838
| <a id="copy_directory-kwargs"></a>kwargs | further keyword arguments, e.g. <code>visibility</code> | none |
3939

4040

docs/copy_file_doc.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on Windows (no Bash is required).
1414
## copy_file
1515

1616
<pre>
17-
copy_file(<a href="#copy_file-name">name</a>, <a href="#copy_file-src">src</a>, <a href="#copy_file-out">out</a>, <a href="#copy_file-is_executable">is_executable</a>, <a href="#copy_file-allow_symlink">allow_symlink</a>, <a href="#copy_file-progress_message">progress_message</a>, <a href="#copy_file-mnemonic">mnemonic</a>, <a href="#copy_file-kwargs">kwargs</a>)
17+
copy_file(<a href="#copy_file-name">name</a>, <a href="#copy_file-src">src</a>, <a href="#copy_file-out">out</a>, <a href="#copy_file-is_executable">is_executable</a>, <a href="#copy_file-allow_symlink">allow_symlink</a>, <a href="#copy_file-mnemonic">mnemonic</a>, <a href="#copy_file-progress_message">progress_message</a>, <a href="#copy_file-kwargs">kwargs</a>)
1818
</pre>
1919

2020
Copies a file to another location.
@@ -34,8 +34,8 @@ This rule uses a Bash command on Linux/macOS/non-Windows, and a cmd.exe command
3434
| <a id="copy_file-out"></a>out | Path of the output file, relative to this package. | none |
3535
| <a id="copy_file-is_executable"></a>is_executable | A boolean. Whether to make the output file executable. When True, the rule's output can be executed using <code>bazel run</code> and can be in the srcs of binary and test rules that require executable sources. WARNING: If <code>allow_symlink</code> is True, <code>src</code> must also be executable. | <code>False</code> |
3636
| <a id="copy_file-allow_symlink"></a>allow_symlink | A boolean. Whether to allow symlinking instead of copying. When False, the output is always a hard copy. When True, the output *can* be a symlink, but there is no guarantee that a symlink is created (i.e., at the time of writing, we don't create symlinks on Windows). Set this to True if you need fast copying and your tools can handle symlinks (which most UNIX tools can). | <code>False</code> |
37-
| <a id="copy_file-progress_message"></a>progress_message | A custom action progress message. | <code>"Copying files"</code> |
3837
| <a id="copy_file-mnemonic"></a>mnemonic | A custom action mnemonic. | <code>"CopyFile"</code> |
38+
| <a id="copy_file-progress_message"></a>progress_message | A custom action progress message. | <code>"Copying files"</code> |
3939
| <a id="copy_file-kwargs"></a>kwargs | further keyword arguments, e.g. <code>visibility</code> | none |
4040

4141

rules/private/copy_directory_private.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ _copy_directory = rule(
123123
},
124124
)
125125

126-
def copy_directory(name, src, out, progress_message = "Copying directory %{input}", mnemonic = "CopyDirectory", **kwargs):
126+
def copy_directory(name, src, out, mnemonic = "CopyDirectory", progress_message = "Copying directory %{input}", **kwargs):
127127
"""Copies a directory to another location.
128128
129129
This rule uses a Bash command on Linux/macOS/non-Windows, and a cmd.exe command on Windows (no Bash is required).

rules/private/copy_file_private.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ _copy_xfile = rule(
106106
attrs = _ATTRS,
107107
)
108108

109-
def copy_file(name, src, out, is_executable = False, allow_symlink = False, progress_message = "Copying files", mnemonic = "CopyFile", **kwargs):
109+
def copy_file(name, src, out, is_executable = False, allow_symlink = False, mnemonic = "CopyFile", progress_message = "Copying files", **kwargs):
110110
"""Copies a file to another location.
111111
112112
`native.genrule()` is sometimes used to copy files (often wishing to rename them). The 'copy_file' rule does this with a simpler interface than genrule.

0 commit comments

Comments
 (0)