diff options
-rw-r--r-- | external/main.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/external/main.go b/external/main.go index e0b95605f0dd..d73f1540a986 100644 --- a/external/main.go +++ b/external/main.go @@ -89,7 +89,9 @@ func analysePackage(root, source, importpath string, stdlib map[string]bool) (pk continue } - if strings.HasPrefix(i, importpath) { + if i == importpath { + local = append(local, []string{}) + } else if strings.HasPrefix(i, importpath) { local = append(local, strings.Split(strings.TrimPrefix(i, importpath+"/"), "/")) } else { foreign = append(foreign, i) |