mirror of
https://github.com/bazelbuild/bazel-skylib
synced 2024-11-30 10:41:18 +00:00
2d1669ed88
This PR adds two new rules: write_file and write_xfile. Both rules solve a common problem: to write a text file with user-defined contents. The problem is routinely solved using a genrule. That however requires Bash, since genrules execute Bash commands. Requiring Bash is a problem on Windows. The new rules do not require any shell. The only difference between the rules is that write_xfile creates an executable file while write_file doesn't. See https://github.com/bazelbuild/bazel/issues/4319 |
||
---|---|---|
.. | ||
analysis_test.bzl | ||
BUILD | ||
build_test.bzl | ||
copy_file.bzl | ||
copy_file_private.bzl | ||
empty_test.sh | ||
maprule.bzl | ||
maprule_private.bzl | ||
maprule_testing.bzl | ||
maprule_util.bzl | ||
write_file.bzl | ||
write_file_private.bzl |