What is the way to redeploy a local charm after making changes to it (for fixing issues or adding new changes) irrespective of the status of the deployed unit? I cannot find this on the docs or in the internet search results.
I tried juju refresh <app name> --path dist/<app name>_ubuntu-18.04-amd64.charm
but the juju debug-log --tail
and the juju status
output shows nothing to be happening even after several minutes. So for the time being, I just remove the application and machine and then deploy the charm again. But it is cumbersome and time-consuming.
Also when I build a charm using charmcraft pack
, deploy it, make some local changes and build it again, I reliably get an error that says
Lint Errors:
- metadata: Cannot read the metadata.yaml file. (https://juju.is/docs/sdk/charmcraft-analyze#heading--metadata)
even though the metadata.yaml
file is obviously there and I haven’t changed it. This gets resolved only after I run charmcraft clean
and redo the build from scratch. Is this a known issue and are there any workarounds for dealing with it?