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
While investigating this issue I also found out that the validation on the charm name in the libs, is in contradiction with what the charmhub API expects.
- Invalid charm name in lib 'traefik-k8s.ingress'. Try replacing hyphens ('-') with underscores ('_'). (in field 'charm-libs[0].lib')
But if I use underscore instead the charmhub API doesn't recognize the charm-name
❯ curl -X POST 'https://api.charmhub.io/v1/charm/libraries/bulk' -H "Content-Type: application/json" --data '[{"charm-name": "traefik_k8s", "library-name": "ingress", "api": 2}]'
{"error-list":[{"code":null,"message":"Items need to include 'library_id' or 'package_id'"}]}
Bug Description
The
fetch-libs
command uses a logged in charmhub session, though it doesn't need to.To Reproduce
charmcraft fetch-libs
Expected:
Libraries are collected
Actual:
Requests login
Environment
n/a
charmcraft.yaml
Relevant log output
The text was updated successfully, but these errors were encountered: