aboutsummaryrefslogtreecommitdiff
path: root/docs
AgeCommit message (Collapse)Author
2020-07-31rm last usage of --experimental_build_setting_api (#260)Julie
* rm last usage of --experimental_build_setting_api * Update bazel_federation to new version to get new stardoc
2020-07-10copy_file: Add parameter to allow symlinks (#252)Yannic
* copy_file: Add parameter to allow symlinks This change adds a new parameter `allow_symlinks` to `copy_file` that allows the action to create a symlink instead of doing an expensive copy if the execution platform (host) allows it. Updates #248 * Update docs * Refactor `is_executable` into attribute * Fix typo * s/_impl/_copy_file_impl/
2019-09-17Delete maprule. Fix Buildifier lint errors. (#192)László Csomor
* Delete maprule. Fix Buildifier lint errors. Delete maprule and its tests: I wrote this rule, and I no longer plan to release it. Alternative rules exist that serve users' needs better. Fix also Buildifier lint errors that were making BuildKite red: https://buildkite.com/bazel/bazel-skylib/builds/659#ab98ac31-6e1c-415e-b8a8-5f8868340c7d
2019-08-23Update selects documentation. (#170)Greg
2019-07-03Give BuildSettingInfo's value field a description (#167)Julie
2019-07-03Create new stardoc target for common_settings.bzl (#166)Julie
2019-05-21run_binary: runs an executable as an action (#153)László Csomor
This rule is an alternative for genrule(): it can run a binary with the desired arguments, environment, inputs, and outputs, as a single build action, without shelling out to Bash. Fixes https://github.com/bazelbuild/bazel-skylib/issues/149
2019-05-14New rules: native_binary and native_test (#152)László Csomor
native_binary() wraps a pre-built binary or script in a *_binary rule interface. Rules like genrule can tool-depend on it, and it can be executed with "bazel run". This rule can also augment the binary with runfiles. native_test() is similar, but creates a testable rule instead of a binary rule. Fixes https://github.com/bazelbuild/bazel-skylib/issues/148 RELNOTES[NEW]: The new `native_binary()` and `native_test()` rules let you wrap a pre-built binary in a binary and test rule respectively.
2019-05-09write_file: support different line endings (#150)László Csomor
The user can specify which line endings they want write_file to use. This helps avoiding line ending mismatches with diff_test. Example: diff_test verifies that a rule generates correct output by comparing it to a checked-in "golden" file. Both files are text files, and the user builds on Windows but the golden file was written on Linux and git checkout preserved original line endings. Without explicitly specifying which line endings to use, this diff_test would fail on an otherwise good output. With explicit line endings we don't need to check in the golden file to git, we can just generate it with "auto" line endings.
2019-05-08Minor formatting changes plus doc updates (#147)c-parsons
2019-05-01Fix typo (#142)Thomas Van Lenten
2019-05-01Add licenses() to all BUILD files. (#141)Thomas Van Lenten
2019-04-12diff_test: add rule and tests (#136)László Csomor
This new test rule compares two files and passes if the files match. On Linux/macOS/non-Windows, the test compares files using 'diff'. On Windows, the test compares files using 'fc.exe'. This utility is available on all Windows versions I tried (Windows 2008 Server, Windows 2016 Datacenter Core). See https://github.com/bazelbuild/bazel/issues/5508 See https://github.com/bazelbuild/bazel/issues/4319
2019-03-26Regenerate docs + remove maprule.md (#137)László Csomor
Maprule is hidden, see https://github.com/bazelbuild/bazel-skylib/commit/3721d32c14d3639ff94320c780a60a6e658fb033
2019-03-20maprule: hide it, not ready for public use. (#133)upstream/0.8.0László Csomor
Move maprule() to a private directory, to discourage use of it. I (@laszlocsomor) am planning breaking changes to it. Also move private files (rule implementations) to a subdirectory "rules/private/", to clean up the "rules/" directory.
2019-03-19write_file: add rule and tests (#122)László Csomor
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
2019-03-18copy_file: add rule and tests (#123)László Csomor
This PR adds two new rules: copy_file and copy_xfile. Both rules solve a common problem: to copy one file to another location. 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 Bash on Windows (only on other platforms). The only difference between the rules is that copy_xfile creates an executable file while copy_file doesn't. See https://github.com/bazelbuild/bazel/issues/4319
2019-03-07run buildifier 0.22.0 (#125)c-parsons
2019-02-28add documentation pages for rules/ and lib/ (#119)c-parsons