← Back to issue list

Allow chiseled stage-packages

View original Github issue

Metadata

Project
snapcraft
Number
#4260
Type
issue
State
closed
Author
lengau
Labels
Status: Triaged Type: Enhancement
Created
Updated
Closed

Current evaluation

Implemented chiseled stage-packages support in snapcraft 8, allowing chisel slices to reduce unneeded files and deduplicate packaging work.

Suggested action:

No scores available.

Issue body

### What needs to get done `stage-packages` should allow use of chisel slices like rockcraft has. (I think it's reasonable to limit it to bases that use `craft-parts`) ### Why it needs to get done Many snaps (including snapcraft itself) use stage packages that end up containing potentially megabytes of unneeded files. While careful use of `prime` can work around this (we really don't need to prime `usr/share/man` and `usr/share/doc` in most snaps), use of chisel can deduplicate the work needed for this.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Implemented chiseled stage-packages support in snapcraft 8, allowing chisel slices to reduce unneeded files and deduplicate packaging work.
qwen/qwen3.6-35b-a3b Implemented in snapcraft 8, enabling chiseled stage-packages to reduce unneeded files and deduplicate prime work. The issue was closed upon release.
qwen/qwen3.6-35b-a3b Implemented in snapcraft 8, enabling chisel slices for stage-packages to reduce unneeded files and deduplicate dependencies, resolving the enhancement request.
qwen3.6-35b-a3b-mtp-q6 Implemented chisel slice support for stage-packages to reduce unneeded snap files. The enhancement was resolved and released in snapcraft 8.
qwen3.6-35b-a3b-mtp-q6 Chisel slice support for stage-packages was implemented to reduce unneeded files. The enhancement was resolved and added in snapcraft 8.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#904 feat: add chisel as a build snap when stage-packages contain slices craft-parts merged Merged. Conditionally installs chisel as a build snap only when stage-packages contain slices and no part already declares it, preventing unnecessary installation in the Rockcraft snap. Approved by two reviewers and passed CI.
75%
#1538 feat(packages/deb): parse chisel manifests craft-parts merged Squash-merged feature adding Chisel manifest parsing to the deb package handler. Filters stage-packages for Core26 by reading manifest files. Approved by two reviewers, passed CI checks, and unblocks downstream snapcraft issues.
74%
#1839 Provide a way to cleanly stage chiselled packages charmcraft open Feature request to support chiselled stage-packages in charmcraft for charms needing system executables/libraries. Blocked by canonical/chisel#156; Jira ticket CRAFT-3666 created. No activity in ~12 months.
73%
#279 spec: add "stage-slices" for chisel slices craft-parts merged Merged the addition of a stage-slices specification to handle chisel slice naming conventions, which require underscores unlike standard .deb packages. Approved by one reviewer, modified two files, and resolved CRAFT-1329.
72%
#649 Install chisel if parts use slices craft-parts closed Automatically installs chisel when parts declare slices in stage-packages. Resolved and merged via pull request #904, centralizing the tool management within craft-parts.
72%
#17 build: drop chisel from rockcraft.yaml snapcraft-rocks merged Merged after removing chisel from rockcraft.yaml to align the Snapcraft rock with standard Snapcraft capabilities, as Snapcraft 7 lacks support. Approved by two reviewers, passed CI, and modified three files. A v8-specific test suite will later restore the Chisel spread test.
70%