Skip to content

Commit 082fcd9

Browse files
Use stage instead of prime in charmcraft files part (#562)
Fixes issue where files in charm directory conflict with files created by poetry plugin during staging
1 parent df8193c commit 082fcd9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

charmcraft.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ platforms:
99
# - dispatch (https://github.com/canonical/charmcraft/pull/1898)
1010
# - manifest.yaml
1111
# (https://github.com/canonical/charmcraft/blob/9ff19c328e23b50cc06f04e8a5ad4835740badf4/charmcraft/services/package.py#L259)
12-
# Files implicitly copied/"primed" by charmcraft without a part:
12+
# Files implicitly copied/"staged" by charmcraft without a part:
1313
# - actions.yaml, config.yaml, metadata.yaml
1414
# (https://github.com/canonical/charmcraft/blob/9ff19c328e23b50cc06f04e8a5ad4835740badf4/charmcraft/services/package.py#L290-L293
1515
# https://github.com/canonical/charmcraft/blob/9ff19c328e23b50cc06f04e8a5ad4835740badf4/charmcraft/services/package.py#L156-L157)
@@ -41,7 +41,7 @@ parts:
4141
# "charm-poetry" part name is arbitrary; use for consistency
4242
# Avoid using "charm" part name since that has special meaning to charmcraft
4343
charm-poetry:
44-
# By default, the `poetry` plugin creates/primes these directories:
44+
# By default, the `poetry` plugin creates/stages these directories:
4545
# - lib, src
4646
# (https://github.com/canonical/charmcraft/blob/9ff19c328e23b50cc06f04e8a5ad4835740badf4/charmcraft/parts/plugins/_poetry.py#L76-L78)
4747
# - venv
@@ -83,7 +83,7 @@ parts:
8383
files:
8484
plugin: dump
8585
source: .
86-
prime:
86+
stage:
8787
- LICENSE
8888
- scripts
8989
- templates

0 commit comments

Comments
 (0)