Skip to content

Episode 32 - Cobra - changes to cmd/root.go short and long descriptions don't update after a go install until I run go mod init #99

Description

@teelowe

Thanks for the great videos. At ~7:50, you make a change to the Long description in the root command, run go install, and the code updates accordingly when you execute "todo". I did the same thing and found that my change to the short and long description would not update, even if I deleted my app binary from /bin and reran go install. It wasn't until I ran a go mod init in my app directory that things started to work as expected (i.e. code changes in the root command appeared after a go install...). Any idea why you were getting this to work without a go.mod file but I wasn't? Very perplexed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions