internal/wire: remove support for go-cloud import path (#111)
This commit is contained in:
@@ -906,7 +906,7 @@ func isWireImport(path string) bool {
|
|||||||
if i := strings.LastIndex(path, vendorPart); i != -1 && (i == 0 || path[i-1] == '/') {
|
if i := strings.LastIndex(path, vendorPart); i != -1 && (i == 0 || path[i-1] == '/') {
|
||||||
path = path[i+len(vendorPart):]
|
path = path[i+len(vendorPart):]
|
||||||
}
|
}
|
||||||
return path == "github.com/google/wire" || path == "github.com/google/go-cloud/wire"
|
return path == "github.com/google/wire"
|
||||||
}
|
}
|
||||||
|
|
||||||
func isProviderSetType(t types.Type) bool {
|
func isProviderSetType(t types.Type) bool {
|
||||||
|
|||||||
Reference in New Issue
Block a user