Skip to content

docs: Guidance on charm naming best practices could be clearer #2582

@YanisaHS

Description

@YanisaHS

Check existing issues

  • I've verified that this request isn't described by any existing issues.

Request

Relevant links:

  1. https://documentation.ubuntu.com/charmcraft/latest/reference/files/charmcraft-yaml-file/#charmcraft-yaml-key-name
  2. https://documentation.ubuntu.com/charmcraft/latest/howto/manage-charms/#initialise-a-charm
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions