canonical / observability

Apache License 2.0
7 stars 11 forks source link

fix: proper support release of charms inside a path #159

Closed skatsaounis closed 7 months ago

skatsaounis commented 7 months ago

This PR fixes the failed release of charms that are placed inside a path.

Charmcraft can allow someone to pack a charm that is placed in a different path but it cannot set the output path. Additionally, it creates the charm in the directory from where charmcraft is invoked.

skatsaounis commented 7 months ago

This job is using the current main: https://github.com/canonical/maas-charms/actions/runs/8535575639/job/23382880799 where the problem can be observed:

...
Charm packed ok
Charms packed:
    maas-region_ubuntu-22.04-amd64.charm
ls: cannot access 'maas-region/*.charm': No such file or directory