commit | 2e2048627c9059fe885121500e421c8d5478b450 | [log] [tgz] |
---|---|---|
author | Jay Conrod <jayconrod@gmail.com> | Mon Jul 09 14:56:16 2018 -0400 |
committer | GitHub <noreply@github.com> | Mon Jul 09 14:56:16 2018 -0400 |
tree | b08ee741d5c80221eaaa1f56d24aa78dc526620d | |
parent | 586635cbd66d2faabb5cf58aeb6570015c09540d [diff] |
internal/resolve: provide self-import check including embeds (#264) The FindResult struct returned by RuleIndex.FindRulesByImport now includes Embeds, a list of labels of embedded rules. This includes transitive embeds. FindResult.IsSelfImport returns whether a FindResult matches a given label or contains the label in Embeds. When this is true, callers should report an error or omit the dependency. Fixes #247