From 4083985ba1c1aeb8da1a34dd7bd54b89adc481b3 Mon Sep 17 00:00:00 2001 From: Alex Lowe Date: Tue, 6 Aug 2024 15:41:55 -0400 Subject: [PATCH] fix: include extra files with the 'dump' plugin (#449) ## Issue In Charmcraft 3, the behaviour of the `prime` keyword has changed, and the warning and documentation are not clear about the change. See: https://github.com/canonical/charmcraft/issues/1782 ## Solution Use the `dump` plugin to include extra files, priming only the files needed. --------- Co-authored-by: Mehdi Bendriss --- charm_internal_version | 2 +- charmcraft.yaml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/charm_internal_version b/charm_internal_version index b1bd38b62..8351c1939 100644 --- a/charm_internal_version +++ b/charm_internal_version @@ -1 +1 @@ -13 +14 diff --git a/charmcraft.yaml b/charmcraft.yaml index a34ac85f6..9e3d96d3a 100644 --- a/charmcraft.yaml +++ b/charmcraft.yaml @@ -26,6 +26,9 @@ parts: - pkg-config - rustc - cargo + version_data: + plugin: dump + source: . prime: - charm_version - charm_internal_version