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: x/capability as standalone go module #14556

Closed
Tracked by #11899
kocubinski opened this issue Jan 9, 2023 · 1 comment
Closed
Tracked by #11899

refactor: x/capability as standalone go module #14556

kocubinski opened this issue Jan 9, 2023 · 1 comment
Assignees

Comments

@kocubinski
Copy link
Member

kocubinski commented Jan 9, 2023

Ref: #11899

The SDK module dependency graph below (generated from main on 2023-01-09) shows that x/capability has no dependents. Given this it should be trivial to create a go.mod for this module and separate it from the SDK monolith.

image

x/capability has dependencies on the SDK modules shown below. As a part of this issue lets do a cursory review and remove them if trivial, or punt to the dependency's issue if not.

$ goFmtString="{{ \$importPath := .ImportPath }} {{ \$forTest := .ForTest }}                                                               
{{ range .Imports }} {{ if \$forTest }} {{ \$forTest }}.test {{else}} {{ \$importPath }} {{end}}-> {{ . }}
{{ end }}"
$ go list -test -f "$goFmtString" ./... | awk -F'->' '$2 ~ "github.com/cosmos/cosmos-sdk/x/"' | awk -F'->' '$2 !~ "github.com/cosmos/cosmos-sdk/x/capability"'
  github.com/cosmos/cosmos-sdk/x/capability/testutil -> github.com/cosmos/cosmos-sdk/x/auth
  github.com/cosmos/cosmos-sdk/x/capability/testutil -> github.com/cosmos/cosmos-sdk/x/auth/tx/config
  github.com/cosmos/cosmos-sdk/x/capability/testutil -> github.com/cosmos/cosmos-sdk/x/auth/types
  github.com/cosmos/cosmos-sdk/x/capability/testutil -> github.com/cosmos/cosmos-sdk/x/bank
  github.com/cosmos/cosmos-sdk/x/capability/testutil -> github.com/cosmos/cosmos-sdk/x/bank/types
  github.com/cosmos/cosmos-sdk/x/capability/testutil -> github.com/cosmos/cosmos-sdk/x/consensus
  github.com/cosmos/cosmos-sdk/x/capability/testutil -> github.com/cosmos/cosmos-sdk/x/consensus/types
  github.com/cosmos/cosmos-sdk/x/capability/testutil -> github.com/cosmos/cosmos-sdk/x/genutil
  github.com/cosmos/cosmos-sdk/x/capability/testutil -> github.com/cosmos/cosmos-sdk/x/genutil/types
  github.com/cosmos/cosmos-sdk/x/capability/testutil -> github.com/cosmos/cosmos-sdk/x/params
  github.com/cosmos/cosmos-sdk/x/capability/testutil -> github.com/cosmos/cosmos-sdk/x/params/types
  github.com/cosmos/cosmos-sdk/x/capability/testutil -> github.com/cosmos/cosmos-sdk/x/staking
  github.com/cosmos/cosmos-sdk/x/capability/testutil -> github.com/cosmos/cosmos-sdk/x/staking/types
  github.com/cosmos/cosmos-sdk/x/capability.test -> github.com/cosmos/cosmos-sdk/x/bank/types
  github.com/cosmos/cosmos-sdk/x/capability.test -> github.com/cosmos/cosmos-sdk/x/staking/types

List of To-dos when creating a go.mod: https://github.com/cosmos/cosmos-sdk/blob/main/CONTRIBUTING.md#gomod

@atheeshp
Copy link
Contributor

atheeshp commented Feb 2, 2023

Closing this for cosmos/ibc-go#3076

@atheeshp atheeshp closed this as completed Feb 2, 2023
@github-project-automation github-project-automation bot moved this from 📝 Todo to 👏 Done in Cosmos-SDK Feb 2, 2023
@tac0turtle tac0turtle removed the Q1:2023 label Apr 3, 2023
@tac0turtle tac0turtle removed this from Cosmos-SDK May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants