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

Error - the module cannot have auth as a dependency: app doesn't contain AuthKeeper #1768

Closed
krubot opened this issue Nov 4, 2021 · 1 comment · Fixed by #3683
Closed
Assignees
Labels
component:scaffold Feature, enhancement, or refactor related to scaffolding.

Comments

@krubot
Copy link

krubot commented Nov 4, 2021

Describe the bug

When running the following commands I get an issue with adding module with auth dependency becuase it doesn't cotain AuthKeeper. This error is also very unclear and doesn't help with debugging.

To Reproduce

Run the following here:

starport scaffold chain github.com/test/test --address-prefix=test --no-module
cd test
starport scaffold module kycoin --dep auth

Output is the following:

the module cannot have auth as a dependency: app doesn't contain AuthKeeper

Please provide the version output

  • starport version: starport version v0.17.0 darwin/amd64 -build date: 2021-07-15T18:34:28Z
@krubot krubot added the report label Nov 4, 2021
@lumtis
Copy link
Contributor

lumtis commented Nov 4, 2021

Hi @krubot
The module dependency feature of Starport works by checking the name of the dependent module keeper in app/app.go
And the auth module keeper is actually named AccountKeeper therefore using --dep account should solve the issue
Thanks for rising this though. We may need to add auth as an alias in the command or rename it in the app.go template

@fadeev fadeev added component:scaffold Feature, enhancement, or refactor related to scaffolding. and removed report labels Sep 17, 2022
@julienrbrt julienrbrt self-assigned this Sep 29, 2023
@julienrbrt julienrbrt moved this to In Progress in Ignite CLI Masterboard Sep 29, 2023
@Pantani Pantani moved this from In Progress to Done in Ignite CLI Masterboard Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:scaffold Feature, enhancement, or refactor related to scaffolding.
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants