bazelbuild / bazel

a fast, scalable, multi-language and extensible build system
https://bazel.build
Apache License 2.0
23.07k stars 4.04k forks source link

Documentation issue: actions.write with args content #13124

Open GMNGeoffrey opened 3 years ago

GMNGeoffrey commented 3 years ago

Documentation URL: https://docs.bazel.build/versions/master/skylark/lib/actions.html#write

"May be a either a string or an actions.args() object." is all it says about passing an args object to content here. What does that actually do though? How are the args processed? What is the intended use case?

brandjon commented 3 years ago

The wording could be clarified to indicate that the args is processed as usual and the resulting string becomes the file contents (as opposed to the arguments of some command line).