You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The command charmcraft list-lib seems to expect the charm name to be in a metadata.yaml file, but newer charms do not have this file, as everything is in charmcraft.yaml.
To Reproduce
Go to a directory which contains a charm with only a charmcraft.yaml file (no metadata.yaml)
# This file configures Charmcraft.# See https://juju.is/docs/sdk/charmcraft-config for guidance.name: listlibstype: charmtitle: Charm Templatesummary: A very short one-line summary of the charm.description: | A single sentence that says what the charm is, concisely and memorably. A paragraph of one to three short sentences, that describe what the charm does. A third paragraph that explains what need the charm meets. Finally, a paragraph that describes whom the charm is useful for.bases:
- build-on:
- name: ubuntuchannel: "22.04"run-on:
- name: ubuntuchannel: "22.04"config:
options:
log-level:
description: | Configures the log level of gunicorn. Acceptable values are: "info", "debug", "warning", "error" and "critical"default: "info"type: stringcontainers:
httpbin:
resource: httpbin-imageresources:
httpbin-image:
type: oci-imagedescription: OCI image for httpbinupstream-source: kennethreitz/httpbin
Relevant log output
Can't access name in 'metadata.yaml' file. The 'list-lib' command must either be executed from a valid project directory, or specify a charm name using the --charm-name option.
The text was updated successfully, but these errors were encountered:
I don't know if this is the best way to solve the problem, but it's an
attempt to solve canonical#1973
Tested locally and it seems to solve the problem.
Bug Description
The command
charmcraft list-lib
seems to expect the charm name to be in ametadata.yaml
file, but newer charms do not have this file, as everything is incharmcraft.yaml
.To Reproduce
charmcraft.yaml
file (nometadata.yaml
)charmcraft list-lib
Environment
Latest charmcraft (3a09483)
charmcraft.yaml
Relevant log output
The text was updated successfully, but these errors were encountered: