Skip to content

Commit

Permalink
fix: include extra files with the 'dump' plugin (#449)
Browse files Browse the repository at this point in the history
## Issue

In Charmcraft 3, the behaviour of the `prime` keyword has changed, and
the warning and documentation are not clear about the change. See:
canonical/charmcraft#1782

## Solution

Use the `dump` plugin to include extra files, priming only the files
needed.

---------

Co-authored-by: Mehdi Bendriss <[email protected]>
  • Loading branch information
lengau and Mehdi-Bendriss authored Aug 6, 2024
1 parent 7c58dca commit 4083985
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charm_internal_version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
13
14
3 changes: 3 additions & 0 deletions charmcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ parts:
- pkg-config
- rustc
- cargo
version_data:
plugin: dump
source: .
prime:
- charm_version
- charm_internal_version
Expand Down

0 comments on commit 4083985

Please sign in to comment.