Skip to content

Commit d77f64d

Browse files
authored
Merge pull request #158 from rabbitmq/resolve-honors-gazelle-exclude
gazelle: exclude directives are honored when resolving local deps
2 parents 3e529ee + 43fbe88 commit d77f64d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

gazelle/resolve.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,11 @@ func appsDirApps(c *config.Config, rel string) map[string]string {
6464
}
6565
for _, d := range dirs {
6666
if d.IsDir() {
67-
result[d.Name()] = filepath.Join(appsDir, d.Name())
67+
configs := c.Exts[languageName].(ErlangConfigs)
68+
dRel := filepath.Join(appsDir, d.Name())
69+
if _, ok := configs[dRel]; ok {
70+
result[d.Name()] = dRel
71+
}
6872
}
6973
}
7074
}

0 commit comments

Comments
 (0)