mirror of
https://github.com/github/codeql.git
synced 2026-02-11 12:41:06 +01:00
QL: resolve imports across qlpacks
This commit is contained in:
@@ -100,8 +100,10 @@ private predicate resolveQualifiedName(Import imp, ContainerOrModule m, int i) {
|
||||
exists(Container c, Container parent |
|
||||
// should ideally look at `qlpack.yml` files
|
||||
parent = imp.getLocation().getFile().getParentContainer+() and
|
||||
exists(parent.getFile("qlpack.yml")) and
|
||||
c.getParentContainer() = parent and
|
||||
exists(YAML::QLPack pack |
|
||||
pack.getFile().getParentContainer() = parent and
|
||||
c.getParentContainer() = pack.getADependency*().getFile().getParentContainer()
|
||||
) and
|
||||
q = m.getName()
|
||||
|
|
||||
m = TFile(c)
|
||||
|
||||
Reference in New Issue
Block a user