wire: improve error for a provider set with a binding but no corresponding provider (#126)
Fixes #113
This commit is contained in:
committed by
Ross Light
parent
b869afc095
commit
d810929d49
@@ -1,4 +1,4 @@
|
||||
example.com/foo/wire.go:x:y: wire.Build has multiple bindings for example.com/foo.Foo
|
||||
example.com/foo/wire.go:x:y: multiple bindings for example.com/foo.Foo
|
||||
current:
|
||||
<- provider "provideFoo" (example.com/foo/foo.go:x:y)
|
||||
<- provider set "Set" (example.com/foo/foo.go:x:y)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
example.com/foo/wire.go:x:y: wire.Build has multiple bindings for string
|
||||
example.com/foo/wire.go:x:y: multiple bindings for string
|
||||
current:
|
||||
<- argument b to injector function inject (example.com/foo/wire.go:x:y)
|
||||
previous:
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
example.com/foo/wire.go:x:y: wire.Build has multiple bindings for example.com/foo.Foo
|
||||
example.com/foo/wire.go:x:y: multiple bindings for example.com/foo.Foo
|
||||
current:
|
||||
<- provider "provideFooAgain" (example.com/foo/foo.go:x:y)
|
||||
previous:
|
||||
<- provider "provideFoo" (example.com/foo/foo.go:x:y)
|
||||
|
||||
example.com/foo/wire.go:x:y: wire.Build has multiple bindings for example.com/foo.Foo
|
||||
example.com/foo/wire.go:x:y: multiple bindings for example.com/foo.Foo
|
||||
current:
|
||||
<- provider "provideFoo" (example.com/foo/foo.go:x:y)
|
||||
previous:
|
||||
<- provider "provideFoo" (example.com/foo/foo.go:x:y)
|
||||
<- provider set "Set" (example.com/foo/foo.go:x:y)
|
||||
|
||||
example.com/foo/wire.go:x:y: wire.Build has multiple bindings for example.com/foo.Foo
|
||||
example.com/foo/wire.go:x:y: multiple bindings for example.com/foo.Foo
|
||||
current:
|
||||
<- provider "provideFoo" (example.com/foo/foo.go:x:y)
|
||||
previous:
|
||||
@@ -28,13 +28,13 @@ previous:
|
||||
<- provider "provideFoo" (example.com/foo/foo.go:x:y)
|
||||
<- provider set "Set" (example.com/foo/foo.go:x:y)
|
||||
|
||||
example.com/foo/wire.go:x:y: wire.Build has multiple bindings for example.com/foo.Foo
|
||||
example.com/foo/wire.go:x:y: multiple bindings for example.com/foo.Foo
|
||||
current:
|
||||
<- wire.Value (example.com/foo/wire.go:x:y)
|
||||
previous:
|
||||
<- provider "provideFoo" (example.com/foo/foo.go:x:y)
|
||||
|
||||
example.com/foo/wire.go:x:y: wire.Build has multiple bindings for example.com/foo.Bar
|
||||
example.com/foo/wire.go:x:y: multiple bindings for example.com/foo.Bar
|
||||
current:
|
||||
<- wire.Bind (example.com/foo/wire.go:x:y)
|
||||
previous:
|
||||
|
||||
@@ -1 +1 @@
|
||||
example.com/foo/foo.go:x:y: no binding for *example.com/foo.foo
|
||||
example.com/foo/foo.go:x:y: wire.Bind of concrete type "*example.com/foo.foo" to interface "example.com/foo.fooer", but setB does not include a provider for "*example.com/foo.foo"
|
||||
Reference in New Issue
Block a user