← Back to issue list

Add a dispatch script in the package service if it doesn't exist

View original Github issue

Metadata

Project
charmcraft
Number
#1813
Type
issue
State
closed
Author
lengau
Labels
—
Created
Updated
Closed

Current evaluation

Merged PR #1898 (b4f91c7b) added package-service dispatch creation when no dispatch exists, implemented as a post-prime step.

Resolution: closed resolved

Reason: PR #1898 was merged as commit b4f91c7b, adding a post-prime step that creates a dispatch file when absent and no hooks directory is present.

Evaluated by: mr-cal-bot

No scores available.

Issue body

### What needs to get done Create a plugin for charmcraft that can take an arbitrary virtualenv + charm.py file and add the relevant hooks, etc. ### Why it needs to get done The current `charm` plugin is currently way too tightly coupled.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged PR #1898 (b4f91c7b) added package-service dispatch creation when no dispatch exists, implemented as a post-prime step.
stealth/space-bunny-alpha — closed stale Closed without implementation. Dispatch/hook generation was postponed pending source-inclusion and entrypoint design decisions, with a possible move to a craft-parts post-prime hook (CRAFT-3239).
qwen3.6-35b-a3b-mtp-q6 — — Closed without implementation. The feature remains undecided and may be restructured as a post-prime hook in craft-parts. Tracked internally via CRAFT-3239 pending design decisions on source inclusion and entrypoint handling.
qwen/qwen3.6-35b-a3b — — Closed without implementation. Maintainer deferred the request due to unresolved architectural questions, suggesting the feature may be better implemented as a post-prime hook in craft-parts instead.
qwen/qwen3.6-35b-a3b — — Closed without implementation. The request for a new charmcraft dispatch plugin remains deferred due to unresolved design questions regarding source inclusion and entrypoint handling. Suggested as a future craft-parts post-prime hook.
qwen3.6-35b-a3b-mtp-q6 — — Deferred. Closed without implementation as the maintainer noted unresolved design questions and suggested addressing the requirement as a post-prime hook in craft-parts instead.

Update history

No update history recorded yet.

Related work

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

    The merged PR directly implemented dispatch-file creation in the package service.

Related issues

Issue Project State Summary Similarity
#1898 feat(package): create a dispatch file if none exists charmcraft merged Merged PR #1898 as b4f91c7b, adding a post-prime step that creates a dispatch file when none exists and no hooks directory is present.
77%