Skip to content

Commit 2f93d5e

Browse files
Use stage instead of prime in charmcraft files part (#371)
Fixes issue where files in charm directory conflict with files created by poetry plugin during staging
1 parent 657b89f commit 2f93d5e

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
@@ -93,7 +93,7 @@ parts:
9393
python3 -c 'import pathlib; import shutil; import subprocess; git_hash=subprocess.run(["git", "describe", "--always", "--dirty"], capture_output=True, check=True, encoding="utf-8").stdout; file = pathlib.Path("charm_version"); shutil.copy(file, pathlib.Path("charm_version.backup")); version = file.read_text().strip(); file.write_text(f"{version}+{git_hash}")'
9494
9595
craftctl default
96-
prime:
96+
stage:
9797
- LICENSE
9898
- charm_version
9999
- workload_version

0 commit comments

Comments
 (0)