diff options
author | laurentlb <laurentlb@google.com> | 2018-04-13 06:09:30 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-04-13 06:10:29 -0700 |
commit | 707acfeecf60ef622b745741e76bf47717b1b480 (patch) | |
tree | 5cab49a70b5e3380417c4817174d95d5fb0512b0 /site/docs/skylark | |
parent | 8738794b0497e240c9b41faefe46a7e790fc0ab7 (diff) |
Introduce `--incompatible_disallow_filetype` to remove the `FileType` function.
RELNOTES:
`FileType` is deprecated and will be removed soon.
Try the `--incompatible_disallow_filetype` flag to ensure your code
is forward-compatible.
PiperOrigin-RevId: 192758063
Diffstat (limited to 'site/docs/skylark')
-rw-r--r-- | site/docs/skylark/backward-compatibility.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/site/docs/skylark/backward-compatibility.md b/site/docs/skylark/backward-compatibility.md index 49c0b6f10f..cebd09a750 100644 --- a/site/docs/skylark/backward-compatibility.md +++ b/site/docs/skylark/backward-compatibility.md @@ -35,6 +35,7 @@ guarded behind flags in the current release: * [Depset is no longer iterable](#depset-is-no-longer-iterable) * [Depset union](#depset-union) * [String is no longer iterable](#string-is-no-longer-iterable) +* [FileType is deprecated](#filetype-is-deprecated) * [New actions API](#new-actions-api) * [New args API](#new-args-api) * [Glob tracking](#glob-tracking) @@ -151,6 +152,17 @@ x = 7 // 2 # x is 3 * Flag: `--incompatible_disallow_slash_operator` * Default: `false` + +### FileType is deprecated + +The [FileType](lib/FileType.html) function is going away. The main use-case was +as an argument to the [rule function](lib/globals.html#rule). It's no longer +needed, you can simply pass a list of strings to restrict the file types the +rule accepts. + +* Flag: `--incompatible_disallow_filetype` +* Default: `false` + ### New actions API This change removes the old methods for registering actions within rules, and |