Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor!: rename container to cosmossdk.io/depinject #12020

Merged
merged 34 commits into from
May 27, 2022
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
ebb79fe
chore: rename container to cosmossdk.io/container
facundomedica May 23, 2022
e1ca78e
fix imports
facundomedica May 23, 2022
901f1c1
add replace for container
facundomedica May 23, 2022
3a4cefe
remove replace
facundomedica May 23, 2022
d1fdcee
add replace
facundomedica May 24, 2022
d2a7b8b
fix replace
facundomedica May 24, 2022
7e137c1
fix replace
facundomedica May 24, 2022
55b4bc3
fix replace
facundomedica May 24, 2022
da1ed43
fix replace
facundomedica May 24, 2022
6c9a269
Merge branch 'main' of https://github.com/cosmos/cosmos-sdk into facu…
facundomedica May 24, 2022
fdafd58
fix replace
facundomedica May 24, 2022
36d30c3
try to fix replace
facundomedica May 24, 2022
d6c405e
merge main
facundomedica May 26, 2022
bfe719b
rename to depinject
facundomedica May 26, 2022
9cf5e17
rename to depinject
facundomedica May 26, 2022
531fb20
do not use vanity URL for now
facundomedica May 26, 2022
3b6c156
try fix tests
facundomedica May 26, 2022
e60464d
try fix tests
facundomedica May 26, 2022
28158f8
try fix tests
facundomedica May 26, 2022
fa7a15f
build -> inject
facundomedica May 26, 2022
fd7cdc8
build -> inject
facundomedica May 26, 2022
9a22063
merge main
facundomedica May 27, 2022
152dd34
go mod tidy
facundomedica May 27, 2022
a176b9d
fix dep vulnerability
facundomedica May 27, 2022
51ef9b4
fix dep vulnerability
facundomedica May 27, 2022
1ca5e5e
fix Dockerfile for liveness-test
facundomedica May 27, 2022
4f26143
fix codeql error
facundomedica May 27, 2022
5975f3b
try to solve dependency review
facundomedica May 27, 2022
0581cf8
Merge branch 'main' into facu/rename-container
facundomedica May 27, 2022
8f0165a
try to solve dependency review
facundomedica May 27, 2022
31329a1
Merge branch 'facu/rename-container' of https://github.com/cosmos/cos…
facundomedica May 27, 2022
c56cafe
go mod tidy
facundomedica May 27, 2022
e9f2bbe
try to fix tests
facundomedica May 27, 2022
84cb251
another try
facundomedica May 27, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion container/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/pkg/errors"

"github.com/cosmos/cosmos-sdk/container/internal/graphviz"
"cosmossdk.io/container/internal/graphviz"
)

type container struct {
Expand Down
2 changes: 1 addition & 1 deletion container/container_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/stretchr/testify/require"
"gotest.tools/v3/golden"

"github.com/cosmos/cosmos-sdk/container"
"cosmossdk.io/container"
)

type KVStoreKey struct {
Expand Down
2 changes: 1 addition & 1 deletion container/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"path/filepath"
"reflect"

"github.com/cosmos/cosmos-sdk/container/internal/graphviz"
"cosmossdk.io/container/internal/graphviz"
)

// DebugOption is a functional option for running a container that controls
Expand Down
2 changes: 1 addition & 1 deletion container/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/cosmos/cosmos-sdk/container
module cosmossdk.io/container

go 1.18

Expand Down
2 changes: 1 addition & 1 deletion container/group.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/pkg/errors"

"github.com/cosmos/cosmos-sdk/container/internal/graphviz"
"cosmossdk.io/container/internal/graphviz"
)

// ManyPerContainerType marks a type which automatically gets grouped together. For an ManyPerContainerType T,
Expand Down
2 changes: 1 addition & 1 deletion container/internal/graphviz/attrs.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"strings"

"github.com/cosmos/cosmos-sdk/container/internal/util"
"cosmossdk.io/container/internal/util"
)

// Attributes represents a graphviz attributes map.
Expand Down
2 changes: 1 addition & 1 deletion container/internal/graphviz/graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"io"

"github.com/cosmos/cosmos-sdk/container/internal/util"
"cosmossdk.io/container/internal/util"
)

// Graph represents a graphviz digraph.
Expand Down
2 changes: 1 addition & 1 deletion container/module_dep.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package container
import (
"reflect"

"github.com/cosmos/cosmos-sdk/container/internal/graphviz"
"cosmossdk.io/container/internal/graphviz"
)

type moduleDepProvider struct {
Expand Down
2 changes: 1 addition & 1 deletion container/one_per_module.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/pkg/errors"

"github.com/cosmos/cosmos-sdk/container/internal/graphviz"
"cosmossdk.io/container/internal/graphviz"
)

// OnePerModuleType marks a type which
Expand Down
2 changes: 1 addition & 1 deletion container/provider_desc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/cosmos/cosmos-sdk/container"
"cosmossdk.io/container"
)

type StructIn struct {
Expand Down
2 changes: 1 addition & 1 deletion container/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package container
import (
"reflect"

"github.com/cosmos/cosmos-sdk/container/internal/graphviz"
"cosmossdk.io/container/internal/graphviz"
)

type resolver interface {
Expand Down
2 changes: 1 addition & 1 deletion container/simple.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package container
import (
"reflect"

"github.com/cosmos/cosmos-sdk/container/internal/graphviz"
"cosmossdk.io/container/internal/graphviz"
)

type simpleProvider struct {
Expand Down
2 changes: 1 addition & 1 deletion container/supply.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package container
import (
"reflect"

"github.com/cosmos/cosmos-sdk/container/internal/graphviz"
"cosmossdk.io/container/internal/graphviz"
)

type supplyResolver struct {
Expand Down
56 changes: 28 additions & 28 deletions container/testdata/example.dot
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
digraph "" {
subgraph "cluster_a" {
graph [fontsize="12.0", label="Module: a", penwidth="0.5", style="rounded"];
"github.com/cosmos/cosmos-sdk/container_test.ModuleA.Provide"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5", shape="box"];
"cosmossdk.io/container_test.ModuleA.Provide"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5", shape="box"];
}

subgraph "cluster_b" {
graph [fontsize="12.0", label="Module: b", penwidth="0.5", style="rounded"];
"github.com/cosmos/cosmos-sdk/container_test.ModuleB.Provide"[color="black", fontcolor="black", penwidth="1.5", shape="box"];
"cosmossdk.io/container_test.ModuleB.Provide"[color="black", fontcolor="black", penwidth="1.5", shape="box"];
}

subgraph "cluster_runtime" {
graph [fontsize="12.0", label="Module: runtime", penwidth="0.5", style="rounded"];
"github.com/cosmos/cosmos-sdk/container_test.ProvideKVStoreKey"[color="black", fontcolor="black", penwidth="1.5", shape="box"];
"cosmossdk.io/container_test.ProvideKVStoreKey"[color="black", fontcolor="black", penwidth="1.5", shape="box"];
}

"[]github.com/cosmos/cosmos-sdk/container_test.Command"[color="lightgrey", comment="many-per-container", fontcolor="dimgrey", penwidth="0.5"];
"github.com/cosmos/cosmos-sdk/container.ModuleKey"[color="black", fontcolor="black", penwidth="1.5"];
"github.com/cosmos/cosmos-sdk/container.OwnModuleKey"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"];
"github.com/cosmos/cosmos-sdk/container_test.KVStoreKey"[color="black", fontcolor="black", penwidth="1.5"];
"github.com/cosmos/cosmos-sdk/container_test.KeeperA"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"];
"github.com/cosmos/cosmos-sdk/container_test.KeeperB"[color="black", fontcolor="black", penwidth="1.5"];
"github.com/cosmos/cosmos-sdk/container_test.MsgClientA"[color="black", fontcolor="black", penwidth="1.5"];
"github.com/cosmos/cosmos-sdk/container_test.ProvideMsgClientA"[color="black", fontcolor="black", penwidth="1.5", shape="box"];
"github.com/cosmos/cosmos-sdk/container_test.TestGraphAndLogOutput"[color="black", fontcolor="black", penwidth="1.5", shape="hexagon"];
"map[string]github.com/cosmos/cosmos-sdk/container_test.Handler"[color="lightgrey", comment="one-per-module", fontcolor="dimgrey", penwidth="0.5"];
"github.com/cosmos/cosmos-sdk/container.ModuleKey" -> "github.com/cosmos/cosmos-sdk/container_test.ProvideMsgClientA";
"github.com/cosmos/cosmos-sdk/container_test.ProvideMsgClientA" -> "github.com/cosmos/cosmos-sdk/container_test.MsgClientA";
"github.com/cosmos/cosmos-sdk/container.ModuleKey" -> "github.com/cosmos/cosmos-sdk/container_test.ProvideKVStoreKey";
"github.com/cosmos/cosmos-sdk/container_test.ProvideKVStoreKey" -> "github.com/cosmos/cosmos-sdk/container_test.KVStoreKey";
"github.com/cosmos/cosmos-sdk/container_test.KVStoreKey" -> "github.com/cosmos/cosmos-sdk/container_test.ModuleA.Provide";
"github.com/cosmos/cosmos-sdk/container.OwnModuleKey" -> "github.com/cosmos/cosmos-sdk/container_test.ModuleA.Provide";
"github.com/cosmos/cosmos-sdk/container_test.ModuleA.Provide" -> "github.com/cosmos/cosmos-sdk/container_test.KeeperA";
"github.com/cosmos/cosmos-sdk/container_test.ModuleA.Provide" -> "map[string]github.com/cosmos/cosmos-sdk/container_test.Handler";
"github.com/cosmos/cosmos-sdk/container_test.ModuleA.Provide" -> "[]github.com/cosmos/cosmos-sdk/container_test.Command";
"github.com/cosmos/cosmos-sdk/container_test.KVStoreKey" -> "github.com/cosmos/cosmos-sdk/container_test.ModuleB.Provide";
"github.com/cosmos/cosmos-sdk/container_test.MsgClientA" -> "github.com/cosmos/cosmos-sdk/container_test.ModuleB.Provide";
"github.com/cosmos/cosmos-sdk/container_test.ModuleB.Provide" -> "github.com/cosmos/cosmos-sdk/container_test.KeeperB";
"github.com/cosmos/cosmos-sdk/container_test.ModuleB.Provide" -> "[]github.com/cosmos/cosmos-sdk/container_test.Command";
"github.com/cosmos/cosmos-sdk/container_test.ModuleB.Provide" -> "map[string]github.com/cosmos/cosmos-sdk/container_test.Handler";
"github.com/cosmos/cosmos-sdk/container_test.KeeperB" -> "github.com/cosmos/cosmos-sdk/container_test.TestGraphAndLogOutput";
"[]cosmossdk.io/container_test.Command"[color="lightgrey", comment="many-per-container", fontcolor="dimgrey", penwidth="0.5"];
"cosmossdk.io/container.ModuleKey"[color="black", fontcolor="black", penwidth="1.5"];
"cosmossdk.io/container.OwnModuleKey"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"];
"cosmossdk.io/container_test.KVStoreKey"[color="black", fontcolor="black", penwidth="1.5"];
"cosmossdk.io/container_test.KeeperA"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"];
"cosmossdk.io/container_test.KeeperB"[color="black", fontcolor="black", penwidth="1.5"];
"cosmossdk.io/container_test.MsgClientA"[color="black", fontcolor="black", penwidth="1.5"];
"cosmossdk.io/container_test.ProvideMsgClientA"[color="black", fontcolor="black", penwidth="1.5", shape="box"];
"cosmossdk.io/container_test.TestGraphAndLogOutput"[color="black", fontcolor="black", penwidth="1.5", shape="hexagon"];
"map[string]cosmossdk.io/container_test.Handler"[color="lightgrey", comment="one-per-module", fontcolor="dimgrey", penwidth="0.5"];
"cosmossdk.io/container.ModuleKey" -> "cosmossdk.io/container_test.ProvideMsgClientA";
"cosmossdk.io/container_test.ProvideMsgClientA" -> "cosmossdk.io/container_test.MsgClientA";
"cosmossdk.io/container.ModuleKey" -> "cosmossdk.io/container_test.ProvideKVStoreKey";
"cosmossdk.io/container_test.ProvideKVStoreKey" -> "cosmossdk.io/container_test.KVStoreKey";
"cosmossdk.io/container_test.KVStoreKey" -> "cosmossdk.io/container_test.ModuleA.Provide";
"cosmossdk.io/container.OwnModuleKey" -> "cosmossdk.io/container_test.ModuleA.Provide";
"cosmossdk.io/container_test.ModuleA.Provide" -> "cosmossdk.io/container_test.KeeperA";
"cosmossdk.io/container_test.ModuleA.Provide" -> "map[string]cosmossdk.io/container_test.Handler";
"cosmossdk.io/container_test.ModuleA.Provide" -> "[]cosmossdk.io/container_test.Command";
"cosmossdk.io/container_test.KVStoreKey" -> "cosmossdk.io/container_test.ModuleB.Provide";
"cosmossdk.io/container_test.MsgClientA" -> "cosmossdk.io/container_test.ModuleB.Provide";
"cosmossdk.io/container_test.ModuleB.Provide" -> "cosmossdk.io/container_test.KeeperB";
"cosmossdk.io/container_test.ModuleB.Provide" -> "[]cosmossdk.io/container_test.Command";
"cosmossdk.io/container_test.ModuleB.Provide" -> "map[string]cosmossdk.io/container_test.Handler";
"cosmossdk.io/container_test.KeeperB" -> "cosmossdk.io/container_test.TestGraphAndLogOutput";
}

50 changes: 25 additions & 25 deletions container/testdata/example_error.dot
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
digraph "" {
subgraph "cluster_a" {
graph [fontsize="12.0", label="Module: a", penwidth="0.5", style="rounded"];
"github.com/cosmos/cosmos-sdk/container_test.ModuleA.Provide"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5", shape="box"];
"cosmossdk.io/container_test.ModuleA.Provide"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5", shape="box"];
}

subgraph "cluster_b" {
graph [fontsize="12.0", label="Module: b", penwidth="0.5", style="rounded"];
"github.com/cosmos/cosmos-sdk/container_test.ModuleB.Provide"[color="red", fontcolor="red", penwidth="0.5", shape="box"];
"cosmossdk.io/container_test.ModuleB.Provide"[color="red", fontcolor="red", penwidth="0.5", shape="box"];
}

subgraph "cluster_runtime" {
graph [fontsize="12.0", label="Module: runtime", penwidth="0.5", style="rounded"];
"github.com/cosmos/cosmos-sdk/container_test.ProvideKVStoreKey"[color="black", fontcolor="black", penwidth="1.5", shape="box"];
"cosmossdk.io/container_test.ProvideKVStoreKey"[color="black", fontcolor="black", penwidth="1.5", shape="box"];
}

"[]github.com/cosmos/cosmos-sdk/container_test.Command"[color="lightgrey", comment="many-per-container", fontcolor="dimgrey", penwidth="0.5"];
"github.com/cosmos/cosmos-sdk/container.ModuleKey"[color="black", fontcolor="black", penwidth="1.5"];
"github.com/cosmos/cosmos-sdk/container.OwnModuleKey"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"];
"github.com/cosmos/cosmos-sdk/container_test.KVStoreKey"[color="black", fontcolor="black", penwidth="1.5"];
"github.com/cosmos/cosmos-sdk/container_test.KeeperA"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"];
"github.com/cosmos/cosmos-sdk/container_test.KeeperB"[color="red", fontcolor="red", penwidth="0.5"];
"github.com/cosmos/cosmos-sdk/container_test.MsgClientA"[color="red", fontcolor="red", penwidth="0.5"];
"github.com/cosmos/cosmos-sdk/container_test.TestGraphAndLogOutput"[color="red", fontcolor="red", penwidth="0.5", shape="hexagon"];
"map[string]github.com/cosmos/cosmos-sdk/container_test.Handler"[color="lightgrey", comment="one-per-module", fontcolor="dimgrey", penwidth="0.5"];
"github.com/cosmos/cosmos-sdk/container.ModuleKey" -> "github.com/cosmos/cosmos-sdk/container_test.ProvideKVStoreKey";
"github.com/cosmos/cosmos-sdk/container_test.ProvideKVStoreKey" -> "github.com/cosmos/cosmos-sdk/container_test.KVStoreKey";
"github.com/cosmos/cosmos-sdk/container_test.KVStoreKey" -> "github.com/cosmos/cosmos-sdk/container_test.ModuleA.Provide";
"github.com/cosmos/cosmos-sdk/container.OwnModuleKey" -> "github.com/cosmos/cosmos-sdk/container_test.ModuleA.Provide";
"github.com/cosmos/cosmos-sdk/container_test.ModuleA.Provide" -> "github.com/cosmos/cosmos-sdk/container_test.KeeperA";
"github.com/cosmos/cosmos-sdk/container_test.ModuleA.Provide" -> "map[string]github.com/cosmos/cosmos-sdk/container_test.Handler";
"github.com/cosmos/cosmos-sdk/container_test.ModuleA.Provide" -> "[]github.com/cosmos/cosmos-sdk/container_test.Command";
"github.com/cosmos/cosmos-sdk/container_test.KVStoreKey" -> "github.com/cosmos/cosmos-sdk/container_test.ModuleB.Provide";
"github.com/cosmos/cosmos-sdk/container_test.MsgClientA" -> "github.com/cosmos/cosmos-sdk/container_test.ModuleB.Provide";
"github.com/cosmos/cosmos-sdk/container_test.ModuleB.Provide" -> "github.com/cosmos/cosmos-sdk/container_test.KeeperB";
"github.com/cosmos/cosmos-sdk/container_test.ModuleB.Provide" -> "[]github.com/cosmos/cosmos-sdk/container_test.Command";
"github.com/cosmos/cosmos-sdk/container_test.ModuleB.Provide" -> "map[string]github.com/cosmos/cosmos-sdk/container_test.Handler";
"github.com/cosmos/cosmos-sdk/container_test.KeeperB" -> "github.com/cosmos/cosmos-sdk/container_test.TestGraphAndLogOutput";
"[]cosmossdk.io/container_test.Command"[color="lightgrey", comment="many-per-container", fontcolor="dimgrey", penwidth="0.5"];
"cosmossdk.io/container.ModuleKey"[color="black", fontcolor="black", penwidth="1.5"];
"cosmossdk.io/container.OwnModuleKey"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"];
"cosmossdk.io/container_test.KVStoreKey"[color="black", fontcolor="black", penwidth="1.5"];
"cosmossdk.io/container_test.KeeperA"[color="lightgrey", fontcolor="dimgrey", penwidth="0.5"];
"cosmossdk.io/container_test.KeeperB"[color="red", fontcolor="red", penwidth="0.5"];
"cosmossdk.io/container_test.MsgClientA"[color="red", fontcolor="red", penwidth="0.5"];
"cosmossdk.io/container_test.TestGraphAndLogOutput"[color="red", fontcolor="red", penwidth="0.5", shape="hexagon"];
"map[string]cosmossdk.io/container_test.Handler"[color="lightgrey", comment="one-per-module", fontcolor="dimgrey", penwidth="0.5"];
"cosmossdk.io/container.ModuleKey" -> "cosmossdk.io/container_test.ProvideKVStoreKey";
"cosmossdk.io/container_test.ProvideKVStoreKey" -> "cosmossdk.io/container_test.KVStoreKey";
"cosmossdk.io/container_test.KVStoreKey" -> "cosmossdk.io/container_test.ModuleA.Provide";
"cosmossdk.io/container.OwnModuleKey" -> "cosmossdk.io/container_test.ModuleA.Provide";
"cosmossdk.io/container_test.ModuleA.Provide" -> "cosmossdk.io/container_test.KeeperA";
"cosmossdk.io/container_test.ModuleA.Provide" -> "map[string]cosmossdk.io/container_test.Handler";
"cosmossdk.io/container_test.ModuleA.Provide" -> "[]cosmossdk.io/container_test.Command";
"cosmossdk.io/container_test.KVStoreKey" -> "cosmossdk.io/container_test.ModuleB.Provide";
"cosmossdk.io/container_test.MsgClientA" -> "cosmossdk.io/container_test.ModuleB.Provide";
"cosmossdk.io/container_test.ModuleB.Provide" -> "cosmossdk.io/container_test.KeeperB";
"cosmossdk.io/container_test.ModuleB.Provide" -> "[]cosmossdk.io/container_test.Command";
"cosmossdk.io/container_test.ModuleB.Provide" -> "map[string]cosmossdk.io/container_test.Handler";
"cosmossdk.io/container_test.KeeperB" -> "cosmossdk.io/container_test.TestGraphAndLogOutput";
}

2 changes: 1 addition & 1 deletion core/appconfig/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"google.golang.org/protobuf/types/known/anypb"
"sigs.k8s.io/yaml"

"github.com/cosmos/cosmos-sdk/container"
"cosmossdk.io/container"

appv1alpha1 "github.com/cosmos/cosmos-sdk/api/cosmos/app/v1alpha1"

Expand Down
2 changes: 1 addition & 1 deletion core/appconfig/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"gotest.tools/v3/assert"

"github.com/cosmos/cosmos-sdk/container"
"cosmossdk.io/container"

"cosmossdk.io/core/appconfig"
"cosmossdk.io/core/appmodule"
Expand Down
2 changes: 1 addition & 1 deletion core/appmodule/doc.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Package appmodule defines the functionality for registering Cosmos SDK app
// modules that are assembled using the github.com/cosmos/cosmos-sdk/container
// modules that are assembled using the cosmossdk.io/container
// dependency injection system and the declarative app configuration format
// handled by the appconfig package.
package appmodule
4 changes: 2 additions & 2 deletions core/appmodule/option.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package appmodule

import (
"github.com/cosmos/cosmos-sdk/container"
"cosmossdk.io/container"

"cosmossdk.io/core/internal"
)
Expand All @@ -18,7 +18,7 @@ func (f funcOption) apply(initializer *internal.ModuleInitializer) error {
}

// Provide registers providers with the dependency injection system that will be
// run within the module scope. See github.com/cosmos/cosmos-sdk/container for
// run within the module scope. See cosmossdk.io/container for
// documentation on the dependency injection system.
func Provide(providers ...interface{}) Option {
return funcOption(func(initializer *internal.ModuleInitializer) error {
Expand Down
2 changes: 1 addition & 1 deletion core/internal/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"google.golang.org/protobuf/proto"
"google.golang.org/protobuf/reflect/protoreflect"

"github.com/cosmos/cosmos-sdk/container"
"cosmossdk.io/container"

appv1alpha1 "github.com/cosmos/cosmos-sdk/api/cosmos/app/v1alpha1"
)
Expand Down
2 changes: 1 addition & 1 deletion core/internal/testpb/modules.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io"
"sort"

"github.com/cosmos/cosmos-sdk/container"
"cosmossdk.io/container"

"cosmossdk.io/core/appmodule"
)
Expand Down
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ require (
cloud.google.com/go/compute v1.5.0 // indirect
cloud.google.com/go/iam v0.3.0 // indirect
cloud.google.com/go/storage v1.14.0 // indirect
cosmossdk.io/container v1.0.0-alpha.3 // indirect
filippo.io/edwards25519 v1.0.0-rc.1 // indirect
github.com/Workiva/go-datastructures v1.0.53 // indirect
github.com/aws/aws-sdk-go v1.40.45 // indirect
Expand Down Expand Up @@ -135,6 +136,7 @@ require (
github.com/zondax/hid v0.9.1-0.20220302062450-5552068d2266 // indirect
go.etcd.io/bbolt v1.3.6 // indirect
go.opencensus.io v0.23.0 // indirect
golang.org/x/exp v0.0.0-20220428152302-39d4317da171 // indirect
golang.org/x/net v0.0.0-20220412020605-290c469a71a5 // indirect
golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5 // indirect
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1450,6 +1450,8 @@ golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u0
golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM=
golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU=
golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw=
golang.org/x/exp v0.0.0-20220428152302-39d4317da171 h1:TfdoLivD44QwvssI9Sv1xwa5DcL5XQr4au4sZ2F2NV4=
golang.org/x/exp v0.0.0-20220428152302-39d4317da171/go.mod h1:lgLbSvA5ygNOMpwM/9anMpWVlVJ7Z+cHWq/eFuinpGE=
golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs=
golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js=
golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
Expand Down