This repository was archived by the owner on Feb 22, 2020. It is now read-only.
Commit 8328bd4
authored
fix issue where usages in a subpackage would be ignored (#53)
If a package was imported by a subpackage of a repository, the extension would try to look up the subpackage's import path as a repository name. For example, it would try to look up the repository named `github.com/sourcegraph/sourcegraph/cmd/frontend/graphqlbackend` at https://sourcegraph.com/github.com/sourcegraph/go-diff/-/blob/diff/print.go#L13:6&tab=references. This led to an error "Unable to find cross-repository references in ${repo}, probably because the repository was renamed and Sourcegraph does not support renamed repositories yet" that was erroneous.
This fix chops off portions of the import path that are beyond the `github.com/owner/repo` name.1 parent 12f4c8c commit 8328bd4
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
323 | | - | |
| 323 | + | |
324 | 324 | | |
325 | | - | |
| 325 | + | |
326 | 326 | | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
327 | 333 | | |
328 | 334 | | |
329 | 335 | | |
| |||
0 commit comments