← Back to issue list

Give charmers a mechanism to specify additional files to be included in the build charms.

View original Github issue

Metadata

Project
charmcraft
Number
#108
Type
issue
State
closed
Author
gnuoy
Labels
—
Created
Updated
Closed

Current evaluation

Closed as a duplicate of #39; Juju-compatible ignore handling in #99 and all-files packaging groundwork in #118 replaced the static include list.

Resolution: closed superseded

Reason: The maintainer explicitly marked #108 as a duplicate of #39. That broader work included all project files except Juju-ignored paths, implemented through #99 and groundwork merged in #118.

Evaluated by: mr-cal-bot

No scores available.

Issue body

I don't think it is realistic for charmcraft to maintain a static list of files and directories to be included in the charm build process *1. For example the OpenStack charms require the charms readme and copyright notice to be in the built charm. Many charms also have a `files` directory which would also be excluded. It would be useful if there was some mechanism by which a charm author can instruct charmcraft to include additional files or directories in the built charm. *1 https://github.com/canonical/charmcraft/blob/master/charmcraft/commands/build.py#L38

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed superseded Closed as a duplicate of #39; Juju-compatible ignore handling in #99 and all-files packaging groundwork in #118 replaced the static include list.
stealth/space-bunny-alpha — closed superseded Closed as a duplicate of charmcraft#39, which replaced the static include list with a blocklist that included all project files except those Juju ignores.
qwen/qwen3.6-35b-a3b — — Closed as a duplicate of issue #39. The feature request to specify additional files for charm builds is being tracked and resolved in that upstream issue instead.
qwen/qwen3.6-35b-a3b — — Superseded by issue #39, which tracks the feature to allow charm authors to specify additional files and directories for inclusion in charm builds.
qwen/qwen3.6-35b-a3b — — Superseded by issue #39, which tracks the feature to allow charm authors to specify additional files and directories for inclusion in charm builds.
qwen3.6-35b-a3b-mtp-q6 — — Closed as a duplicate of issue #39. The feature request to specify additional build files was superseded by existing tracking for the same functionality.

Update history

No update history recorded yet.

Related work

  • Superseded By: canonical/charmcraft#39 (confidence 100%)

    Maintainer closed #108 as a duplicate of this broader issue.

  • Likely Fixed By: canonical/charmcraft#99 (confidence 85%)

    Added Juju-compatible ignore handling for packaged project files.

  • Related To: canonical/charmcraft#118 (confidence 85%)

    Merged groundwork for including all project files in the build.

Related issues

Issue Project State Summary Similarity
#112 Include everything but what is explicity ignored to Juju. charmcraft merged Merged PR #112 as 9f241a8a, changing Charmcraft to include all project files for Juju except those excluded by default or .jujuignore rules.
71%