Skip to content

Commit

Permalink
Fix to support charmcraft 3.1.1 (#381)
Browse files Browse the repository at this point in the history
## Issue
With the latest version 3.1.1 of charmcraft, build and deploying charms
fails if there is a prime part in the `charmcraft.yaml` file: `Warning:
use of 'prime' in a charm part is deprecated and no longer works, see
https://juju.is/docs/sdk/include-extra-files-in-a-charm`.

## Solution
Fix the charmcraft.yaml config file.
  • Loading branch information
reneradoi authored Aug 2, 2024
1 parent 1c9ec1c commit 3a65aad
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions charmcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ bases:
- name: "ubuntu"
channel: "22.04"
parts:
files:
plugin: nil
prime:
- charm_version
- workload_version
charm:
override-pull: |
craftctl default
Expand All @@ -20,9 +25,6 @@ parts:
fi
charm-strict-dependencies: true
charm-entrypoint: src/charm.py
prime:
- charm_version
- workload_version
build-packages:
- cargo
- libffi-dev
Expand Down

0 comments on commit 3a65aad

Please sign in to comment.