diff options
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 --------- |