You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| out | Name of the output file. This file will always be created and used to access the package content. If `package_file_name` is also specified, `out` will be a symlink. | String | required ||
12
-
| package_file_name | The name of the file which will contain the package. The name may contain variables in the form`{var}`. The values for substitution are specified through `package_variables`. | String | optional | package type specific|
12
+
| package_file_name | The name of the file which will contain the package. The name may contain variables in the forms`{var}` and $(var)`. The values for substitution are specified through `package_variables` or taken from [ctx.var](https://bazel.build/rules/lib/ctx#var). | String | optional | package type specific |
13
13
| package_variables | A target that provides `PackageVariablesInfo` to substitute into `package_file_name`. | <ahref="https://bazel.build/docs/build-ref.html#labels">Label</a> | optional | None |
14
14
| attributes | Attributes to set on entities created within packages. Not to be confused with bazel rule attributes. See 'Mapping "Attributes"' below | Undefined. | optional | Varies. Consult individual rule documentation for details. |
15
15
@@ -18,6 +18,10 @@ See
18
18
for examples of how `out`, `package_file_name`, and `package_variables`
19
19
interact.
20
20
21
+
@since(0.8.0): File name substitution now supports the $(var) syntax.
22
+
@since(0.8.0): File name substitution now supports direct use of [ctx.var](https://bazel.build/rules/lib/ctx#var).
| out | Name of the output file. This file will always be created and used to access the package content. If `package_file_name` is also specified, `out` will be a symlink. | String | required ||
41
-
| package_file_name | The name of the file which will contain the package. The name may contain variables in the form`{var}`. The values for substitution are specified through `package_variables`. | String | optional | package type specific|
41
+
| package_file_name | The name of the file which will contain the package. The name may contain variables in the forms`{var}` and $(var)`. The values for substitution are specified through `package_variables` or taken from [ctx.var](https://bazel.build/rules/lib/ctx#var). | String | optional | package type specific |
42
42
| package_variables | A target that provides `PackageVariablesInfo` to substitute into `package_file_name`. | <ahref="https://bazel.build/docs/build-ref.html#labels">Label</a> | optional | None |
43
43
| attributes | Attributes to set on entities created within packages. Not to be confused with bazel rule attributes. See 'Mapping "Attributes"' below | Undefined. | optional | Varies. Consult individual rule documentation for details. |
44
44
@@ -47,6 +47,10 @@ See
47
47
for examples of how `out`, `package_file_name`, and `package_variables`
48
48
interact.
49
49
50
+
<divclass="since"><i>Since 0.8.0</i></div>: File name substitution now supports the $(var) syntax.
51
+
<divclass="since"><i>Since 0.8.0</i></div>: File name substitution now supports direct use of [ctx.var](https://bazel.build/rules/lib/ctx#var).
0 commit comments