diff options
author | 2015-09-07 12:06:02 +0000 | |
---|---|---|
committer | 2015-09-08 09:04:15 +0000 | |
commit | 3f8aac93ff0b2f06bc01b60614a265304aec177d (patch) | |
tree | a700689c1961f917d0d35cf5aca7c7a9e962d32f /site | |
parent | 7a046e16d135821d224382352c7098e0c004a779 (diff) |
Skylark: configuration fragments for host configuration can now be accessed via ctx.host_fragments.
--
MOS_MIGRATED_REVID=102490502
Diffstat (limited to 'site')
-rw-r--r-- | site/docs/skylark/rules.md | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/site/docs/skylark/rules.md b/site/docs/skylark/rules.md index f450fd0ab9..287fb2fea6 100644 --- a/site/docs/skylark/rules.md +++ b/site/docs/skylark/rules.md @@ -235,11 +235,16 @@ def impl(ctx): my_rule = rule( implementation=impl, - fragments = ["java"], + fragments = ["java"], #Required fragments of the target configuration + host_fragments = ["java"], #Required fragments of the host configuration ... ) ``` +`ctx.fragments` only provides configuration fragments for the target +configuration. If you want to access fragments for the host configuration, +please use `ctx.host_fragments` instead. + Providers --------- |