Check existing issues
Request
Relevant links:
- https://documentation.ubuntu.com/charmcraft/latest/reference/files/charmcraft-yaml-file/#charmcraft-yaml-key-name
- https://documentation.ubuntu.com/charmcraft/latest/howto/manage-charms/#initialise-a-charm
- https://documentation.ubuntu.com/charmcraft/latest/howto/manage-charms/#specify-a-name
Just my opinion, but it's easy to look at these pages and see them as unclear and even having conflicting information at first pass
A "quick fix" could be in the "best practices" section on the charmcraft.yaml doc could change to something like:
"Don’t add an operator or charm prefix or suffix in your charmcraft.yaml file. For charm repository naming conventions, see Initialise a charm."
(although I'm far from a charm expert - so keep that perspective in mind :))
But in general, it might be helpful to have something more explicit about the naming standards for charms - what the charm itself should be named, and what the git repository should be named, what shows up in Charmhub, etc.
The experience I had which led me to opening this issue was that I wanted to find the naming conventions for a new charm repository in GitHub, so I Googled something like "charmcraft docs new charm name standards" and got doc 1, which points to doc 2, which points to doc 3, which points back to doc 1. I cycled a bit through them before realizing the charm name and charm repository name are explicitly supposed to be different
Document location
https://documentation.ubuntu.com/charmcraft/latest/reference/files/charmcraft-yaml-file/#charmcraft-yaml-key-name