Skip to content

Commit 7215260

Browse files
authored
Correct docs for container_layer's mode attribute (#2268)
* Correct docs for container_layer's mode attribute * Also applies to empty_root_dirs
1 parent 5e997fa commit 7215260

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

container/layer.bzl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,12 @@ _layer_attrs = dicts.add({
344344
A list of files that should be included in the Docker image.""",
345345
),
346346
"mode": attr.string(
347-
default = "0o555", # 0o555 == a+rx
348-
doc = "Set the mode of files added by the `files` attribute.",
347+
default = "0o555",
348+
doc = """Set the mode of files and directories added.
349+
350+
"0o555" == a+rx
351+
352+
Applies to `files`, `empty_files`, `empty_dirs`, and `empty_root_dirs` attributes.""",
349353
),
350354
"mtime": attr.int(default = _DEFAULT_MTIME),
351355
"operating_system": attr.string(

0 commit comments

Comments
 (0)