* chore: rename container to cosmossdk.io/container * fix imports * add replace for container * remove replace * add replace * fix replace * fix replace * fix replace * fix replace * fix replace * try to fix replace * rename to depinject * rename to depinject * do not use vanity URL for now * try fix tests * try fix tests * try fix tests * build -> inject * build -> inject * go mod tidy * fix dep vulnerability * fix dep vulnerability * fix Dockerfile for liveness-test * fix codeql error * try to solve dependency review * try to solve dependency review * go mod tidy * try to fix tests * another try
13 lines
291 B
Go
13 lines
291 B
Go
package depinject
|
|
|
|
import (
|
|
"reflect"
|
|
|
|
"github.com/pkg/errors"
|
|
)
|
|
|
|
func duplicateDefinitionError(typ reflect.Type, duplicateLoc Location, existingLoc string) error {
|
|
return errors.Errorf("duplicate provision of type %v by %s\n\talready provided by %s",
|
|
typ, duplicateLoc, existingLoc)
|
|
}
|