go/packages: remove contains: query. it's been superceeded by file=
Change-Id: I472787d50e799ef0ee663168201933dd70a1a487 Reviewed-on: https://go-review.googlesource.com/c/147977 Reviewed-by: Alan Donovan <adonovan@google.com>
This commit is contained in:
parent
e21233ffa6
commit
aa0cdd1ef5
|
@ -83,18 +83,6 @@ extractQueries:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
patterns = restPatterns
|
patterns = restPatterns
|
||||||
// Look for the deprecated contains: syntax.
|
|
||||||
// TODO(matloob): delete this around mid-October 2018.
|
|
||||||
restPatterns = restPatterns[:0]
|
|
||||||
for _, pattern := range patterns {
|
|
||||||
if strings.HasPrefix(pattern, "contains:") {
|
|
||||||
containFile := strings.TrimPrefix(pattern, "contains:")
|
|
||||||
containFiles = append(containFiles, containFile)
|
|
||||||
} else {
|
|
||||||
restPatterns = append(restPatterns, pattern)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
containFiles = absJoin(cfg.Dir, containFiles)
|
|
||||||
|
|
||||||
// TODO(matloob): Remove the definition of listfunc and just use golistPackages once go1.12 is released.
|
// TODO(matloob): Remove the definition of listfunc and just use golistPackages once go1.12 is released.
|
||||||
var listfunc driver
|
var listfunc driver
|
||||||
|
|
Loading…
Reference in New Issue